Preheat your oven to 400°F (200°C).
In a baking dish, combine cherry tomatoes, olive oil, minced garlic, salt, and pepper.
Place the block of feta cheese in the center of the dish.
Bake for about 25 minutes, or until the tomatoes burst and the feta is golden.
While baking, cook the pasta according to package instructions.
Reserve a cup of pasta water before draining the pasta.
Once the feta and tomatoes are done, mash them together with a fork.
Add the cooked pasta to the baking dish, mixing well.
If the sauce is too thick, add reserved pasta water until desired consistency is reached.
Serve hot, garnished with fresh basil and red pepper flakes if desired.