Heat the oven to 180°C fan bake.
Place a pastry sheet on a baking paper lined shallow tray.
Leaving a 2cm edge around the outside, layer the ham, brie, spinach, red onion, and cherry tomatoes. Season with a little salt and a good grind of black pepper.
Place the second sheet of pastry over the filling and press the edges to seal. Crimp the edges with a fork.
Brush the pastry with the egg to give it a golden finish when baked. Prick a couple of holes with a fork.
Bake for 25-30 minutes or until the pastry is puffed and golden brown.
Remove the pie from the oven and let it cool slightly. Garnish with fresh basil leaves.
Cut into pieces and serve the pie warm.