Cook the spaghetti or linguine according to package instructions until al dente. Drain and set aside, reserving 1/2 cup of the pasta water.
In a large skillet, melt the butter over medium heat. Add the minced garlic and red pepper flakes (if using) and sauté for about 1 minute until fragrant.
Add the shrimp to the skillet and season with salt and pepper. Cook for 2-3 minutes on each side until the shrimp turn pink and opaque. Remove the shrimp from the skillet and set aside.
In the same skillet, add the cherry tomatoes and chicken broth. Bring to a simmer and cook for about 3-4 minutes until the tomatoes soften.
Return the shrimp to the skillet and add the cooked pasta. Toss everything together, adding reserved pasta water as needed to create a light sauce.
Stir in the chopped parsley and lemon juice. Adjust seasoning with salt and pepper to taste.
Serve immediately, topped with grated Parmesan cheese.