Cook the spaghetti according to package instructions until al dente.
While pasta cooks, heat olive oil in a large skillet over medium heat.
Add minced garlic and red pepper flakes; sauté for about 1 minute until fragrant.
Add the shrimp to the skillet; season with salt and pepper.
Cook the shrimp for about 2-3 minutes on each side until pink and opaque.
Drain the cooked spaghetti, reserving some pasta water.
Add the drained spaghetti to the skillet with shrimp.
Pour in lemon juice and toss everything together, adding pasta water as needed.
Stir in fresh parsley and adjust seasoning if necessary.
Serve hot, topped with Parmesan cheese.