Most of this buildup is on the surface of the plastic headlight lenses and can be removed with ... soda buffs out the foggy layer. Rinse with clean water until baking soda residue is gone.
Bug sprays, particularly those containing DEET (like Deep Woods Off), can temporarily clear hazed headlight lenses. The DEET acts as a solvent, removing the oxidation layer on the plastic ...
Cloudy or foggy headlight lenses can happen to anyone over time ... Polish headlights with a rubbing compound or plastic polish to bring back the shine then wipe off excess polish.