Heat olive oil in a large pot over medium heat. Sauté diced onion for 3-4 minutes until translucent. Stir in minced garlic, diced carrot, and diced celery. Cook for another 5 minutes until softened.
Prepare small pasta according to package instructions or add directly to the soup later.
Add dried oregano, dried basil, and red pepper flakes to the softened vegetables. Stir and cook for 1 minute. Pour in diced tomatoes and vegetable broth. Bring to a boil.
Add cannellini beans and small pasta. Reduce heat to a simmer and cook for 10-12 minutes until flavors meld and pasta is al dente.
Season with salt and pepper to taste. Serve hot, garnished with grated Parmesan cheese and fresh parsley.