There's an old saying "if you don't learn from your mistakes, you're destined to repeat them" not sure who to give credit for it, but it certainly applies.
I agree with Guac, you're ahead of the game if you have it in mind that maintenance is a challenge and aren't looking at being "cured" once you get to goal weight.
Many years ago a guy I worked with said when you gain a couple pounds get them off right away, I didn't listen to him then, but his words stuck with me, imagine how easy it will be for us to lose a couple pounds now and then compared to losing the 10's of pounds we are working on now.
best to all