Uti or something else?

The past week or so when I pee once it comes to the end of me peeing, I get an extremely sharp pain to the right of my stomach. It stays for about 15 minutes or so after I have left the bathroom and I find it difficult to move because the pain is severe. I'm also 25 weeks pregnant. Is this a uti or something else?