Warm the olive oil in a large heavy-bottomed pot over medium-high heat. After 90 seconds when the oil is hot, add the onion, carrot, and celery. Sauté for 6-7 minutes until the vegetables soften and the onion turns translucent.
Add the garlic, oregano, thyme, and crushed red pepper flakes. Continue to sauté for 60-90 seconds, stirring continuously so the garlic does not brown.
Stir in the crushed tomatoes, vegetable stock, and red wine. Add the bay leaves and salt. Increase to high heat and bring to a steady boil.
Add the ditalini pasta and lower the the pot to a gentle boil over medium heat. Cook for 7-8 minutes until the pasta is barely al dente, stirring every 2–3 minutes so the pasta does not stick to the bottom of the pot.
Add the cannellini beans, and let them hang out in the pot for just a minute or two until warmed through.
Remove the bay leaves. Taste and adjust salt as needed. Ladle into bowls and finish with grated vegan parmesan and minced parsley if using.