Struggling

So my mental health has been getting really bad. I have a history of depression but i was doing okay until about january. Things started to worse but i was managing. In july i attempted to end my life and shortly after i was sexually assaulted. I have been a mess ever since between panic attacks and suicidal thoughts. I am also in the middle of switching meds because i was on an ssri so my doc thought it may be making my suicidal ideation worse. I feel so hopeless. I take my meds, have a dbt workbook and I go to therapy but nothing seems to help. Does anyone have any suggestions on what they found has helped in the past?