In a large pot of salted boiling water, cook the spaghetti or linguine according to package directions until al dente. Drain and set aside, reserving ½ cup of the pasta water.
In a large skillet over medium heat, heat 2 tablespoons of olive oil. Add the minced garlic and red pepper flakes, cooking until fragrant (about 30 seconds).
Toss in the shrimp, season with salt and pepper, and cook until they turn pink and opaque, about 2-3 minutes per side. Remove the shrimp from the skillet and set aside.
In the same skillet, add the cherry tomatoes. Sauté for about 2-3 minutes until they start to soften. Add the lime zest and juice, stirring to combine.
Return the shrimp to the skillet along with the cooked pasta. Add the remaining tablespoon of olive oil and a little reserved pasta water if needed for moisture. Gently toss everything together until well combined.
Remove the skillet from the heat and stir in the chopped cilantro. Adjust the seasoning if necessary.
Plate the pasta warm, topping with grated Parmesan cheese if desired.