I’m so confused !

So I had my period 28th April and my cycle is 32 days . My apps all say about 17th I would ovulate . I had sex with my bf 17th 18th and 19th

We broke up as he cheated . I stupidly slept with an ex on the 23rd

My midwife says I’m 7 week 5 days pregnant but my scan is showing early for 4 weeks roughly ! I was ovulating 5 weeks ago . I’m freaking out is it most likely to be my partners or ex?

Midwife said my baby may just be growing slowly