I would advise anyone to NEVER put peanut butter or peanuts into any thing that is a communal "potluck" or "church social" or Christmas giveaway cookies brought to work or whatever. Just don't do it. The peanut allergy is the most deadly allergy next to the shellfish allergy that I know of, and more than just me have it. I don't know what the percentage of the population is that has it, but it is more than you might think. I make it a habit to not eat communal food if there is any chance of a peanut hiding there. Many people put peanuts in the weirdest things thinking "they are good and good for you". And they are deadly toxin for a percentage of the population. But ignorant people still do it, and still poison people. The next time you have the urge to bake a batch of peanut butter cookies, think "I am making deadly poison items for someone". You don't know who is silly enough to eat them. Especially children that may not know and may not understand what they are doing. When I see a cookie, I assume it contains the poison and avoid it. Unless it is a store bought brand I can identify as non poisonous. I have learned the hard way not to accept gifts from well meaning but ignorant to my condition people.
I have been poisoned by my asking "does it contain any peanuts?" And they answer no. Then they have forgotten to tell you it contains peanut butter. Yes, that really has happened to me. Best thing is to never offer me a home made cookie, and then I won't have to refuse it and hurt your feelings.