Hi, Welcome to Health care magic forum.
As you describe, it appears to be the urinary tract infection
, or the stone in the ureter
near the bladder. The onset at the time of gym might be a coincidence.
I advise you to consult a surgeon for diagnosis and treatment.
You may need to have an ultrasound
i usually prescribe to my patient with such symptoms cifixime,mefanamic acid, dicyclomine
Wishing for a quick and complete recovery. Thank you.