Heat oil in a large stockpot over medium-high heat. Add the onion, zucchini, yellow squash, carrots, celery and garlic and cook for 7-8 minutes, stirring occasionally, until the onions are tender. Add the red wine and stir to deglaze the pan, using a spoon to scrape up any brown bits that have stuck to the bottom of the pan. Cook for 2 minutes to reduce slightly. Then add the chicken or vegetable stock, oregano, thyme, black pepper, red pepper flakes, bay leaves, tomatoes, and beans. Cover and bring to a boil, then reduce heat to medium-low and let simmer for at least 15-20 minutes. 10 minutes before serving, stir in the spinach (or kale) and pasta noodles. Stir occasionally until al dente. Remove the bay leaves and season with additional salt and pepper if needed. Serve hot garnished generously with freshly-grated Parmesan cheese.