Discharge

I have recently had sex with my ex and I know he’s had sex with a few other people, and the next day there was a pain, similar to like a soreness X5 where when we tried to have sex the next day it hurt to where he couldn’t even put it in. Today I saw a bit of yellowish discharge in my underwear with a slight smell if I bring it up to my nose. What is going on??