Start by preheating the oven to 400 degrees F (200 degrees C). Spread the cherry tomatoes on a baking sheet. Drizzle them with olive oil and sprinkle with salt and crushed red pepper flakes. Ensure the tomatoes glisten as they roast, aiming for a tender and slightly caramelized result. Keep an eye on them to prevent burning.
Wrap the garlic cloves in foil, tucking them next to the tomatoes on the baking sheet. As they roast, the sweet aroma will meld beautifully with the tomatoes. Check for softness as undercooked garlic can be harsh.
While the tomatoes and garlic are roasting, boil a pot of salted water and add the linguine or spaghetti. Cook until al dente, tasting to ensure it is done to your liking. Timing is key; draining too early or late can affect texture.
Once the pasta is cooked, mix it with the roasted tomatoes, garlic, and a bit of the reserved pasta water to help bring everything together. Stir carefully, allowing the warmth to meld the flavors. If the sauce feels too dry, add more pasta water gradually.
Toss in the chopped basil at the end, allowing its fresh aroma to brighten your dish. Gently mix to keep the pasta intact while integrating the basil for a stunning finish.