Preheat oven to 350°F (175°C). Line a pie dish with the pastry crust.
Melt butter in a skillet over medium heat; sauté shrimp for 2 minutes until just pink, then drain liquid.
Whisk eggs, heavy cream, Old Bay seasoning, and black pepper together in a medium bowl.
Layer half the shredded cheddar cheese in the bottom of the pie crust.
Scatter sautéed shrimp and sliced green onions over the cheese layer.
Pour egg custard mixture evenly into the crust; top with remaining cheddar cheese.
Bake for 38 to 40 minutes until center sets and crust turns deep golden brown; rest 10 minutes before slicing.