UTI or??

sorry about the long post but i need help- about a year ago i began having these sharp pains in my pelvis and the best way to describe them is it felt like there were tendons stretching from my belly button to my vagina that were tearing. obviously this is not the case but just for the sake of trying to explain that’s my description. i went to the ER when they got so bad but the doctor told me they were ovulation pains. from then on they would occur rarely but not as severe but now i’m experiencing this exact pain tenfold ESPECIALLY when i pee. now i’m thinking, is this possibly a UTI? this might sound weird because i was never diagnosed with it during the previous hospital visit but.... i didn’t think ovulation could cause excruciating pain while peeing??