You can check with a consultant, but I'm pretty sure anxiety or SSRIs fall into the immediate grounding category.
I suggest you talk to a consultant or AOPA before the FAA. It's possible in theory to get approved to fly with SSRIs but word is that it's very difficult. Might be better off getting well, then off SSRIs. You should be able to get a medical after that with minimal hassles.
Lifestyle changes and therapy might work, and let you get off meds. Especially if it was caused by a transient life event. Just because you're prone to anxiety or depression doesn't mean you have to be anxious or depressed. Self awareness goes a long way.