Many of us here have had a gain and are working it back off.
No magic pill has ever worked for me. It's going back to bariatric basic eating plan.logging your food, Hitting your protein goal , lots of water and exercise.
Choose the pain of discipline or the pain of regret.