Have you gained weight from antidepressant use?

I’m on Sertraline 50 mg for 10 months now. In less than 1 year, I gained 40 lbs. In my 26 years of life, this is the first time I’m overweight. I’m getting really self conscious. I tried to be more active and reduce calories but im only gaining weight. I don’t know what to do anymore. I brought it up to my doctor but he said he never got this report from his other patients before. My biggest issue is the pain on my feet to my knees. I don’t even recognize myself in the mirror anymore 😥