Instead of peanut butter, try the little Vienna sausages that you buy in the small cans. That is what we use to give our dogs any pills. They love those things.
We use one of those individually wrapped slices of cheese. Open the wrapper partially, tear off a half inch-wide strip of the cheese, divide into 3-4 pieces, wrap the pill in one piece, roll into a little cheese ball...Bob’s your uncle. Our little guy loves it. We can get 3-4 cheese balls out of that half-inch strip, and use the extra balls to follow-up the pill-loaded ball. If we’re giving the dog daily doses of a med (Apoquel or prednisone, for example), the remaining slice goes in the fridge for use the next day. One slice lasts several days. If you’re only giving one “pill”, the remaining slice of cheese is a good human snack.
Note...the little boy gets his fair share of peanut butter.