Heat a pan over medium-high heat. When hot, add the olive oil and onion. Cook, stirring occasionally, until the onion starts to soften and browns slightly.
Turn the heat down to medium and add the garlic. Sauté for about 20 seconds, stirring frequently.
Add the carrots, green beans, celery, oregano, and thyme, and stir to combine.
Next add tomatoes, salt, black pepper, and chili flakes, and cook on medium until tomatoes become soft.
Add the beans, broth and bay leaves. Also add parmesan rind, if using. Cover, and let it simmer for 20 minutes.
Stir in the pasta and cook for 6 to 7 minutes, stirring occasionally. Add chopped basil and switch off the heat.
Remove bay leaf and parmesan rind.
Sprinkle more chopped basil or parsley on top; and some grated parmesan cheese. Serve hot and enjoy!