I have taken meds for anxiety in the past as well. My doctor currently has me taking nortriptalin at night to prevent migraines, but is also antidepressant. I also have a prescription for xanax which I take as needed. I think as long as you are working with your doctor and monitoring how you are feeling you are good.
Do you have a plan in place to help you with sobriety?