01 - Preheat the oven to 400°F.
02 - Place the cherry tomatoes, garlic, and shallot (if using) in a baking dish. Drizzle with olive oil, season with salt, pepper, oregano, and red pepper flakes. Toss to coat evenly.
03 - Make space in the center of the dish and place the feta block in the middle. Drizzle the feta with a little more olive oil.
04 - Bake for 30–35 minutes until the tomatoes burst and the feta is golden and soft.
05 - While the feta and tomatoes bake, cook the pasta in salted boiling water according to package instructions. Reserve 1/2 cup pasta cooking water before draining.
06 - Remove the baking dish from the oven. Use a spoon to mash the feta and tomatoes together, mixing until a creamy sauce forms.
07 - Add the drained pasta and fresh basil to the dish. Toss well, adding reserved pasta water as needed to loosen the sauce.
08 - Taste and adjust seasoning. Serve warm, garnished with extra basil.