Combine the crushed red pepper flakes, gochugaru, ginger, garlic, chopped fermented black beans (if using), fried shallots, sesame seeds, sugar, and salt in a heatproof bowl large enough to hold the oil. Set aside.
Combine the canola oil, cinnamon stick, star anise, bay leaves, and Sichuan peppercorns in a small saucepan. Heat over medium-low heat for 8-10 minutes, allowing the aromatics to infuse the oil. The oil should develop a steady stream of small bubbles around the spices without smoking or blackening.
Carefully pour the hot oil through a fine-mesh strainer over the chili mixture, discarding the cinnamon stick, star anise, bay leaves, and peppercorns. Stir thoroughly to distribute the oil and spices.
Allow the chili crisp to cool completely before transferring it to a clean glass jar. Refrigerate until ready to use. Stir before serving to redistribute the solids throughout the oil.