All-purpose flour, for dusting
2 sheets frozen puff pastry (one 17-ounce package), thawed
1 large egg
1 heaping tablespoon cajeta (Mexican caramel sauce) or dulce de leche, at room temperature
1/4 cup finely grated Monterey jack cheese
1/4 cup diced pineapple
1 tablespoon demerara sugar