01 - Preheat the oven to 400°F.
02 - In a baking dish, combine cherry tomatoes, garlic, and red onion. Drizzle with olive oil, season with salt, black pepper, and red pepper flakes. Toss to coat evenly.
03 - Place the block of feta cheese in the center of the baking dish, nestling it among the tomatoes. Drizzle additional olive oil over the cheese.
04 - Bake for 30 minutes, until the tomatoes burst and the feta is golden and soft.
05 - Meanwhile, cook the pasta in a large pot of salted boiling water according to package instructions until al dente. Reserve 1/2 cup of pasta cooking water, then drain the pasta.
06 - Remove the baking dish from the oven. Mash the feta and tomatoes gently with a fork, mixing them into a creamy sauce.
07 - Add the cooked pasta to the dish, tossing to coat evenly. If the sauce is too thick, add a little reserved pasta water to loosen.
08 - Stir in the fresh basil just before serving.
09 - Serve immediately, garnished with extra basil and a drizzle of olive oil if desired.