Preheat your oven to 425°F (220°C).
Melt the ⅓ cup of butter in a large skillet over medium heat. Add the diced chicken and cook until no longer pink.
Add the chopped onion, the 1 cup of carrots, the 1 cup of celery and the 3 minced garlic cloves. Cook until softened.
Sprinkle the ⅓ cup of flour over the mixture and stir to combine. Cook for 1 to 2 minutes to remove the raw flour taste.
Whisk in the 1½ cups of chicken broth and the 1 cup of milk. Simmer, whisking, until the sauce thickens enough to heavily coat the back of a spoon.
Stir in the 1 teaspoon of thyme, the 1 teaspoon of rosemary, the 1 cup of frozen peas, and salt and pepper to taste. Remove from the heat and let the filling cool for about 10 minutes.
Press 1 pie crust into a 9 inch pie dish. Add the cooled filling.
Top with the second crust, trim the overhang, crimp the edges to seal, and cut 3 or 4 vent slits in the top.
Brush the top crust and edges with the beaten egg.
Place the dish on a baking sheet and bake for 30 to 35 minutes, until the crust is golden and the filling is bubbling through the vents.
Let the pie rest for 10 minutes before slicing.