Irregular periods and weight loss

Li

I am 27 and my periods have been irregular since I started at age 12. I was at healthy BMI until about five years ago. Everyone says losing weight will regulate your periods but if mine were irregular before I gained weight will it really make any difference? I’m still trying to lose weight so I can be healthier overall but I’m not holding out much hope for it regulating my cycles based on my past.