In a large pot, heat the olive oil over medium heat. Add the onion, carrots, and celery, and cook until the vegetables are softened, about 5-7 minutes.
Add the minced garlic, oregano, thyme, and basil. Cook for another 1-2 minutes until fragrant.
Stir in the crushed tomatoes, vegetable broth, bay leaves, water, and red pepper flakes. Simmer for 10 minutes.
Add the cannellini beans and ditalini pasta to the pot. Continue to simmer until the pasta is cooked through, about 10-12 minutes.
Stir in the chopped parsley, and season with salt and pepper to taste. Serve hot, topped with grated Parmesan cheese.