In a large baking dish, combine the cherry tomatoes, minced garlic, and olive oil. Season with salt, pepper, oregano, and red pepper flakes. Toss everything together until well coated.
Place the block of feta cheese in the center of the baking dish, surrounded by the tomato mixture. Drizzle a little extra olive oil over the feta.
Bake in the preheated oven for 25-30 minutes, until the feta is soft and the tomatoes are blistered.
While the feta and tomatoes are baking, cook the pasta according to package instructions until al dente. Reserve 1/2 cup of pasta water, then drain the rest.
Once the feta and tomatoes are done, remove the dish from the oven. Using a fork, mash the feta and mix it with the roasted tomatoes, creating a creamy sauce.
Add the cooked pasta to the baking dish, stirring to combine everything. If the mixture is too thick, add some reserved pasta water to reach the desired consistency.
Taste and adjust seasoning if necessary.
Serve hot, garnished with fresh basil leaves and a sprinkle of grated parmesan cheese if desired.