Turn Instant Pot on sauté and add olive oil.
Sauté the onion, celery, and carrots with salt and pepper to taste for 4-5 minutes, stirring occasionally until onions are translucent.
Add the spices, garlic and tomato paste and stir to combine. Cook until fragrant, 1-2 minutes.
Add the wine and cook 1-2 minutes until mostly evaporated.
Turn off the instant pot.
Add the zucchini or squash, diced tomatoes, vegetable broth, bay leaves, parsley, pesto, water, pasta and beans. Stir well.
Close lid and set vent to sealed position.
Set to pressure cook on high pressure for 6 minutes.
After the 6 minutes, carefully do a quick pressure release using a kitchen towel to turn the valve to venting position.
Once pressure is released, open pot and remove the bay leaves.
Set to sauté, and add kale and apple cider vinegar. Season with salt and pepper to taste and cook 5-7 minutes. Stirring occasionally until kale is cooked through.
Serve hot with grated parmesan cheese.