In a large oven proof skillet or medium baking dish, combine garlic, tomatoes, and all but 1 tablespoon of oil. Season with salt, pepper flakes, and rosemary. Toss to combine.
Place feta into the center of tomato mixture. Drizzle with the 1 tablespoon of reserved oil. Scatter more rosemary over the block of feta.
Bake until tomatoes are bursting and feta is golden on top (40-45 minutes).
In a large pot of boiling water seasoned with salt, cook pasta according to package directions. Reserve ½ cup pasta water before draining the pasta.
Add cooked pasta to sauce with the reserved pasta water. Stir until combined.
Notes
Use a seasoned block of feta for more flavor
Add different seasonings like garlic powder, onion powder, or Italian seasoning for more flavor
Toss the pasta into the dish while it is still hot so it absorbs more flavor