Preheat the oven to 200°C (400°F).
Place the block of feta in the center of a baking dish and surround it with cherry tomatoes.
Drizzle olive oil over the feta and tomatoes, and sprinkle with minced garlic, red pepper flakes, salt, and pepper.
Bake for 25-30 minutes until the tomatoes burst and the feta is soft and golden.
Meanwhile, cook the pasta according to the package instructions until al dente. Reserve some pasta water before draining.
Remove the baking dish from the oven. Mix the feta and tomatoes together until creamy.
Add the cooked pasta to the baked feta mixture, tossing to coat. Use reserved pasta water to adjust the consistency as needed.
Garnish with chopped basil leaves and serve immediately.