Preheat the oven to 400°F (200°C). Roll each piece of dough into an equal circle and stack them on a baking sheet, spreading pesto and a third of the mozzarella between each layer.
Place a small glass or round cutter in the center of the stack and press down lightly to mark it, without cutting through.
Using a sharp knife, cut from the edge of the circle to the glass, making 16 even strips like spokes on a wheel.
Pick up two neighboring strips and twist them away from each other twice, then pinch the ends together to form a point.
Repeat around the circle to create an 8 point star.
Brush with beaten egg, sprinkle with flaky salt, and bake for 18 to 20 minutes, until deep golden.