Preheat the oven to 350°F (175°C). Spray a loaf pan with nonstick cooking spray.
In a medium bowl, whisk together flour, pumpkin pie spice, baking soda, and ¼ tsp salt.
In a stand mixer or with a hand mixer, butter, coconut sugar, until light and fluffy (about 2 minutes).
Add eggs one at a time, mixing until incorporated. Stir in pumpkin purée and vanilla extract.
Add dry ingredients and mix until just combined.
Pour batter into the prepared loaf pan. Sprinkle with pumpkin seeds, if using.
Bake for 50-55 minutes, or until a toothpick inserted in the center comes out clean.
Cool completely in the pan on a wire rack before slicing.