I assume you got the estimate of 8 weeks pregnant from a doctor who read an ultrasound? If so the ex would have been too early.
Absolutely the boyfriends, you cannot get pregnant before when you had a period. When you had sex with your ex, then got a period means no egg was fertilized. The sex between June 30th and July 7th would’ve gotten you pregnant