Preheat your oven to 200°C (400°F).
Add cherry tomatoes and garlic cloves to a baking dish.
Place the block of feta cheese in the center.
Drizzle olive oil over everything.
Sprinkle chili flakes, oregano, black pepper, and a little salt.
Bake for 25–30 minutes until the tomatoes burst and the feta becomes soft and golden.
Meanwhile, cook the pasta according to package instructions until al dente. Reserve 1/4 cup pasta water.
Remove the baking dish from the oven and mash the feta together with the roasted tomatoes to create a creamy sauce.
Add cooked pasta and reserved pasta water. Mix until fully coated.
Garnish with fresh basil and serve warm.