I have an anxiety disorder and alhamdullilah im feeling better. With ramzan coming up I wanted to know the rulings regarding fastimg for someone in my state. I am also on medicataion and would like to know if i could take them in the middle of my fast. or If i suddenly feel a big burst of anxiety and i break my fast will it be considered a sin.

If it is necessary for you to take medication than you're not obligated to fast. If you will be off of this medication before next Ramadhan then you will do the Qadha of those days umyou missed, but if you will be continuously in need of this medication then you need to pay fidya of feeding one poor shia per day of the missed fasts.