Hi, Dianne, I am awfully sorry but yes, the baby could be from your ex. If a doctor, nurse, ultrasound tech or any medical person says you're 6 weeks "pregnant", it is not a figure that counts back to conception but to two weeks before conception, to the first day of your last period. All medical counts of pregnancy (the number like 6 weeks 3 days or 11 weeks 4 days) begin on the first day of the last period you had before getting pregnant. If a doctor says to a woman, "Congratulations, you are 6 weeks pregnant!" he means 6 weeks since her last period began and about 4 weeks since conception.
The count is done this way because the period is a big, obvious signal, not because the doctor thinks you are pregnant when you are on day 1 of your cycle. (The doctor knows you were not pregnant then -- you were having a period!) But that is why pregnancy, which takes 38 weeks, is counted as being 40 weeks long. They add a spare two weeks at the front to be able to calibrate the count to the presumed first day of the last period.
Sperm can live in your reproductive tract 5 or even 6 days. You had sex with Mr. Wrong on the 20th, and your ultrasound suggests you conceived on the 22nd. This unfortunately means you can't rule him out, and given that your partner always pulls out, Mr. Wrong has a pretty good chance. (I assume you know your partner pulling out is not 100% effective as birth control also.)
I assume you know about pre-natal DNA testing? It's expensive but can be done in a few weeks, by blood draw from the mom and swab from the guys. Does your boyfriend know about this?
If you have sex but he never finishes inside of you, you have a 4-15% chance of getting you pregnant over the course of one year. So your partner could have been the one that got you pregnant. (As that is what I am understanding from your post, if I misunderstood and instead you are telling me that you never had intercourse with your current partner, then the baby must belong to your ex) When a man does finish inside, your chances of getting pregnant over the course of one year are 85%. Considering only these odds, its a little bit more likely that it is your ex's, but not impossible that it is your partners.
Now the good news is, they said you are 6 weeks pregnant and the incident with your ex occurred only 4 weeks ago. I am not a doctor or an expert, so you probably want to ask your doctor, but I think it is unlikely that they would mistake a 4 week fetus for a 6 week fetus. I would think that being off on the age by 30% is a pretty huge error. I would call and ask them if it is at all possible that the fetus is only 4 weeks and just big for its age so it looks like 6 weeks. They can tell you how sure they are. If they are sure on the conception date, the baby belongs to your current partner.
If they are not sure, the baby can belong to either one of them and there is no way to tell. You will need to do a DNA test.
PS my ultra sound was vaginal if that makes a difference