Preheat the oven to 390 degrees F ( 200 C ).
Add olive oil, garlic, and cherry tomatoes into a baking dish.
Then, place the block of feta cheese in the middle of the baking dish, add a little bit more olive oil, and season everything with salt, black pepper, oregano, and thyme.
Bake for 35 to 40 minutes.
Meanwhile, cook the pasta al dente according to package instructions and drain.
Remove the baking dish from the oven and smash the tomatoes, garlic, and feta cheese with a fork.
Then, add the pasta and basil into the mixture and combine everything. Serve warm.