Did the urologist do any urine testing? Any STD testing?
It sounds as if it could be prostatitis. What did the doctor think it is?
https://www.medicalnewstoday.com/articles/320470#symptoms
https://www.health.harvard.edu/newsletter_article/chronic-nonbacterial-prostatitis-chronic-pelvic-pain-syndrome
https://www.columbiaurology.org/adult-urology/urinary-disorders/male-urinary-disorders/prostatitis
One thing that others say helps sometimes is to eliminate caffeine. It doesn't help everyone, but it can help.
We also have 2 others who have posted very similar stories today, and a few others recently. If you go back to the main forum, maybe you all can help each other get through this.
https://
www.medhelp.org/forums/Mens-Health/show/93