Painful ejaculation

So I know my boyfriend probably needs to go to the doctor but I wanted everyone's opinion. My boyfriend doesnt ever want sex or jerk off he just doesnt really think about it. We tried the other day and everytime he ejaculates he says it feels good but hurts really bad at the same time. He describes it as like a sharp sometimes burning sensation. He doesnt have a uti or std or anything so does anyone have any theories to what it could be. Could his semen be backed up. ? Sorry for the long post. Thank you in advice.