I'm so sorry you had to go through this! You sound like a good person. Sometimes you have to have these trials to get to a place where you can meet your soulmate.
If you had not gone through this hellish last five months, you may have always wondered if the ex would have worked out after all. Now you can remove that doubt and go forward with no regrets.