Blind Spots, written by Marty Makary, has a chapter on peanut allergy. In the chapter, he states that avoidance recommendations made in 2000 based on 1996 study were wrong, and actually made allergies increase.
Here's articles on the chapter I'm referencing:
https://news.harvard.edu/gazette/story/2024/10/excerpt-from-blind-spots-by-marty-makary/
https://www.wsj.com/health/how-pediatricians-created-the-peanut-allergy-epidemic-952831c4