Heat oven to 400°F; line a baking sheet with parchment. Squeeze all possible water from thawed spinach.
Mix spinach, feta, ricotta, minced garlic and pepper in a small bowl.
Roll the cold puff pastry lightly on a floured worktop; cut into sixteen approximately equal rectangles.
Place about 2 teaspoons spinach filling on one half of each rectangle. Fold into triangles, pressing edges shut with a fork; make a tiny steam slit.
Brush with beaten egg and sprinkle sesame seeds if using. Bake 17–20 minutes until puffed and golden and the filling is fully hot.
Cool 5 minutes. Arrange several triangles in a Christmas-tree shape on a serving platter if desired; the shape is for serving, not a raw dough bake.