I would have told myself to divorce the ex then, instead of waiting 5 years and prolonging the misery.
Either way, dwelling negatively on the past does not help as you cannot change it. I don't believe I would have come to the same conclusions if I had not experienced it first hand. Remember: work smarter, harder not longer!