The depo shot is the only hormonal contraception method that has been proven to directly influence weight. The others may affect weight indirectly through appetite changes or water retention. You definitely gain weight getting older in my experience but I think it’s more to do with your life changing. Moving out of home and no longer getting home made meals paid for by someone else for example is a big factor for many. Has much changed in your life in the last two years? Diet, exercise, lifestyle, sleep, water intake, stress levels, alcohol/substance use?
I personally was on 3 pill brands with different active ingredients over 7 years and all weight changes I experienced during that time were directly linked to my diet, stress and exercise levels. I’m off the pill now and going off didn’t change my weight.