I am sorry that happened. It will be OK. Get your depression treated. Then you will be able to feel happy again. You will be able to experience joy again. I hope you can find a medication that works for you. That will make a huge difference. Also I hope you can find support groups, group activities, stay connected with people. Also mindfulness meditation can help, or mindfulness motion exercises, such as yoga, qi-gong, tai-chi.
If you have the Knowledge Seeking peronality, then I suggest check out keirsey.com and see if you identify with the Rational personality type. Also check the book Please Understand Me II by David Keirsey.?
I suggest don't worry if it takes an extra year or two to complete school. Much more important is to take care of your mental health issues first so you are not miserable. If you have the Knowledge Seeking personality then you will be learning and figuring out the world for the rest of your life. You're already smart.?
One possibility, and I don't know you well enough, but some people who are uber smart, geeks, very technically competent, want to be scientists, but develop depression because they have difficulty socializing, they feel isolated. If that's the case you can study body language, flirting, and small talk. Meditation should help lessen social fear and anxiety.
My life didn't go as planned. It started out as planned, then took a sharp left, and it just insisted on going in its own direction, dragging me along for the ride, until I just scrapped the original plan cause this story is writing itself.
I did have the depression pretty severely, but I'm much better now. I did enjoy studying physics. And math. And astronomy. And you can study these things on your own. There are web sites and YouTube videos on everything, or you can procure an old fashioned book if you like. It's easy to pass a university class if you already know it. I think you'll need to study Calculus then you can study physics. Oh I also enjoyed studying computer pogramming.?
But get your depression treated. See a doctor. Get that fixed, then you can feel happy, enjoy life, enjoy learning, enjoy romance, companionship, enjoy whatever path your life takes.