Finely dice the onion and carrot, and mince the garlic.
Heat olive oil in a large skillet over medium heat.
Add onion and carrot and cook for 5–6 minutes until softened.
Stir in garlic and cook for 30 seconds.
Add ground beef, breaking it apart with a wooden spoon. Cook for 6–8 minutes until browned and fully cooked to 160°F (71°C). Drain excess fat if necessary.
Stir in tomato paste and cook for 1 minute.
Add Worcestershire sauce, thyme, smoked paprika, salt, and pepper.
Sprinkle flour over the filling and stir for 1 minute.
Gradually add beef stock and simmer for 3–5 minutes until the mixture forms a thick gravy. Add optional peas near the end.
Transfer the filling to a shallow dish and refrigerate until cool, approximately 20–30 minutes.
Preheat oven to 400°F (200°C). Line two baking sheets with parchment paper.
Cut chilled puff pastry into eight approximately 5-inch squares.
Place approximately 3 tablespoons of cooled beef filling in the center of each square.
Fold each square diagonally into a triangle. Press edges together and crimp with a fork.
Arrange pasties on the baking sheets, leaving space between them.
Whisk egg and milk together. Brush over the pastry tops.
Cut a small steam vent in each pasty and sprinkle with sesame seeds if desired.
Bake for 20–25 minutes until deeply golden, puffed, and fully cooked.
Cool for 5–10 minutes before serving.