I don't get this, how does a passenger eating peanuts affect another passenger that's allergic to them?
In fact, a quick google brings up this page: https://www.aaaai.org/ask-the-expert/peanut-air-travel
Face masks are effectively preventing droplet infections, but probably wouldn't prevent traces of peanut from being inhaled.