Boil the pasta. Cook the spaghetti in a large pot of salted water until 1 minute shy of the package directions. Before draining, scoop out 1/2 cup of pasta water and set it aside, then drain the pasta.
Cook the shrimp. While the pasta cooks, warm the olive oil in a large skillet over medium-high heat. Season the shrimp with salt and pepper, then cook for 1 to 2 minutes per side, until pink and just cooked through. Remove the shrimp to a plate.
Make the sauce. Lower the heat to medium and melt the butter in the same skillet. Add the garlic and red pepper flakes and cook for 30 seconds, until fragrant. Stir in the lemon zest and juice, then pour in the reserved pasta water and let it bubble for a minute.
Toss everything together. Add the drained pasta and the shrimp back to the pan. Toss for 1 to 2 minutes, until the pasta is coated in the sauce and the shrimp are warmed through. Add a splash more pasta water if it looks dry.
Serve. Shower with parsley and Parmesan, add an extra squeeze of lemon, and serve right away.