Remarriage is a problem when you get divorced over anything else except infidelity (adultery) committed by your spouse.
“And I say to you, whoever divorces his wife, except for immorality, and marries another woman commits adultery
The passage refers to marriages that are unlawful in the first case, not to adultery. Greek has a specific word for “adultery”; that’s not the word Jesus used.