Hello and hope you are doing well.
The pain could be due to scar tissue, as sometimes this can cause an urethral stricture, which can cause an obstruction to urinary flow and pain. Also, the pain could be due to a stone obstructing the flow of urine. Only further investigations can help diagnose. If the pain is very severe you could go to the ER, if not wait for your appointment.
Hope this helped and do keep us posted.