Cook pasta in salted water until al dente. Reserve 1/2 cup pasta water, then drain.
Melt 3 tablespoons butter in a large skillet over medium heat. Add garlic and cook 30 seconds. Add shrimp, season with salt, pepper, and red pepper flakes, and cook 2 to 3 minutes per side. Transfer shrimp to a plate.
Melt remaining 2 tablespoons butter in the same skillet. Add heavy cream and simmer gently for 3 to 4 minutes.
Slowly stir in Parmesan until smooth. Add reserved pasta water as needed to loosen the sauce.
Toss pasta with the sauce. Return shrimp and warm for 1 minute.
Serve immediately with parsley and black pepper.