Preheat your oven to 400°F (200°C).
Place the block of feta cheese in the center of a baking dish and surround it with cherry tomatoes.
Drizzle olive oil over the cheese and tomatoes, then sprinkle with garlic, red pepper flakes, salt, and pepper.
Bake for 25-30 minutes, or until the tomatoes are bursting and the feta is soft.
Meanwhile, cook the pasta according to package instructions. Reserve 1/2 cup of pasta water before draining.
Remove the baking dish from the oven and use a fork to mash the feta and tomatoes into a creamy sauce.
Toss the cooked pasta with the sauce, adding reserved pasta water if needed for consistency.
Garnish with fresh basil leaves and serve immediately.