Add garlic, rosemary, thyme, and red pepper flakes. Cook for 1 minute until fragrant. Press Cancel.
Stir in the chopped sun-dried tomatoes, vegetable broth, rinsed cannellini beans, and water.
Secure the lid and set the valve to Sealing. Select Manual/Pressure Cook (High Pressure) for 8 minutes.
When the cooking time finishes, allow a Natural Pressure Release (NPR) for 10 minutes, then carefully perform a Quick Release (QR) for any remaining pressure.
Open the lid. Remove about 1.5 cups of the soup mixture (mostly beans and liquid) and transfer it to a blender. Blend until completely smooth.
Return the pureed mixture to the Instant Pot. Stir in the heavy cream (or coconut milk) and Parmesan cheese, if using.