Preheat Your Oven: Set your oven to 400°F (200°C). The high heat will help the tomatoes get nice and caramelized.
Prepare the Tomatoes: In a large bowl, toss the halved tomatoes with minced garlic, olive oil, salt, pepper, dried oregano, dried basil, and red pepper flakes if you're using them.
Roast the Tomatoes: Spread the seasoned tomatoes on a baking sheet in a single layer. Bake them in the preheated oven for about 20-25 minutes, or until they are soft and slightly caramelized.
Cook the Pasta: While the tomatoes are roasting, bring a large pot of salted water to a boil. Cook your pasta according to the package instructions until it's al dente. Drain and set aside.
Combine Pasta and Roasted Tomatoes: Once the tomatoes are done, transfer them (along with all the juices and garlic) to a large mixing bowl. Add the cooked pasta and toss everything together until well combined.
Add Cheese: Sprinkle the freshly grated Parmesan cheese over the pasta and mix until it's evenly distributed.
Garnish and Serve: Garnish with fresh basil leaves and extra Parmesan cheese if desired. Serve immediately and enjoy!