Preheat the oven to 400°F.
Combine tomatoes, olive oil, smashed garlic cloves, salt, black pepper, and red pepper flakes in a baking dish. Toss to coat. Place feta cheese in the middle of the tomatoes.
Bake for 40 minutes until the tomatoes have burst and the feta has softened.
Meanwhile, cook pasta in a large pot of salted, boiling water until al dente, according to package directions. Reserve ½ cup pasta water as you drain the pasta.
When the tomatoes are done, remove the baking dish from the oven and add the fresh basil leaves.
Smash the tomatoes and feta together to form a creamy sauce. Add the pasta and ½ of the pasta water. Stir well. Add more pasta water, if needed.
Serve garnished with additional fresh basil.
