Thanks for the query.
Since the first intercourse that you had with your ex is during the safe period and the one that you had with your husband is closer to ovulation time ,the pregnancy most probably has occurred with your husband, provided you are sure of dates and cycles regular. However paternity can only be confirmed with DNA tests.
Hope this helped.
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.