Do you believe the bible is smart on this?

The bible says not to get back together with somebody you broke up with if you had a replacement lover after the break up happened.

I watched a tv series where people rekindled relationships with their ex boyfriend or ex-girlfriend and about 100% of the second chance relationships ended in failure, most were toxic before failing and did not fall apart out of mere location or logistical strains.

Updates
1 y
Deuteronomy 24 If a man marries a woman who becomes displeasing to him because he finds something indecent about her, and he writes her a certificate of divorce, gives it to her and sends her from his house, 2 and if after she leaves his house she becomes the wife of another man, 3 and her second husband dislikes her and writes her a certificate of divorce, gives it to her and sends her from his house, or if he dies, 4 then her first husband, who divorced her, is not allowed to marry her again a
Do you believe the bible is smart on this?
Post Opinion