"I know my past restriction is the cause of my recent weight gain, but I still wonder if I tried it again maybe this time around I wouldn't lose control and would be able to restrict and be skinny forever."
You have perfectly summarized the thoughts of every dieter who has ever lived: "It's not the diet, it's me. I'm a failure. I'll do better this time. This time it will work. This time I'll be able do it forever. This time will be different."
Then they buy the new diet book or program, make a grocery list, make a plan, start fresh, and bask in the honeymoon phase of restriction. They might even lose some weight, or the honeymoon might be over before the end of the first day. Either way, the overwhelming food thoughts begin. The hungry body says, "Uh, no. We're not doing this again." Cue the cravings, the urges, the rebelliousness, the feelings of deprivation, and the ravenous hunger. Next thing the dieter knows, they are "off" the diet and eating everything in sight, sometimes for weeks or months before they calm down and decide to give restriction another shot, because you know, "It's not the diet, it's me."
This is how the diet industry keeps selling us crap. We're ever hopeful, and very eager to blame ourselves. Once you see that vicious and manipulative cycle for what it is, it becomes much less tempting.
If instead of diets and deprivation, you nurture self-confidence and a healthy relationship with food, then there is no backlash. There is nothing to rebel against or go off of. You don't have to live with that constant fear and vigilance, which is the setup for low self-esteem, negativity, and weight gain. It's not the answer to anybody's problems.