Boyfriend has pain middle of shaft to anal 24 hrs after sex! Says I have STD when I get tested I don't? What would cause this pain for him? He's 46

Perineal pain. I'm a gyn so this isn't my area of expertise, but i'm also a 45 year old male. I would guess this could be some prostate swelling or discomfort. It does sometimes happen especially if there is a lot of foreplay or sex without male orgasm. If he's that worried about an std have him get tested. Men don't have to get the swab in the urethra anymore. They can check with a simple urinary sti test.