Sauté the Vegetables: Heat olive oil in a large pot over medium heat. Add the diced onion, garlic, carrot, and celery. Sauté for about 5 minutes until the vegetables become tender and fragrant.


Add the Tomatoes and Beans: Stir in the diced tomatoes, cannellini beans, and kidney beans. Mix well to combine all the flavors.

Season the Soup: Add the vegetable or chicken broth, oregano, basil, red pepper flakes (if using), salt, and black pepper. Stir everything together and bring the soup to a gentle boil.

Simmer: Reduce the heat to low and let the soup simmer for about 20 minutes to allow the flavors to develop.
Cook the Pasta: While the soup is simmering, cook the pasta separately according to the package instructions. Drain and set aside.

Combine and Serve: Add the cooked pasta to the soup and stir well. If the soup is too thick, add more broth to reach your desired consistency.
Garnish and Enjoy: Serve the soup hot, topped with grated Parmesan cheese and fresh parsley for added flavor.