While pie crust cools, cook bacon in a skillet over medium-high until fat is beginning to render, 4 to 5 minutes. Add chopped shallots, and cook until bacon is crisp and shallots are caramelized, 6 to 7 more minutes. Stir in garlic; cook until fragrant, about 1 minute. Using a slotted spoon, transfer bacon mixture to a plate lined with paper towels to drain. Cool 20 minutes.