In a large pot, heat the olive oil over medium heat. Add the diced onion and sauté for about 3-4 minutes until translucent.
Add the minced garlic and continue to sauté for another minute until fragrant.
Stir in the diced carrots and celery, cooking for about 5-6 minutes until they begin to soften.
Add the zucchini and mushrooms to the pot, and cook for another 4-5 minutes until they release their moisture.
Pour in the chicken or vegetable broth, and fully incorporate the dried thyme, oregano, and red pepper flakes (if using). Season with salt and pepper to taste.
Bring the soup to a gentle boil. Once boiling, add the small pasta and cook according to package instructions (usually about 8-10 minutes).
If using shredded chicken, stir it in just before the pasta is done.
In the final minute of cooking, add the fresh spinach or kale to the pot, allowing it to wilt.
Once everything is cooked through, remove from heat and let it cool slightly before serving.
Notes
Serve hot, garnished with parsley and Parmesan cheese. Drizzle with olive oil for added flavor.