Marijuana is often prescribed for anxiety, different strains do different things and react differently for each person but most of the things associated with weed that make anxiety worse (ei. Paranoia) are generally just side effects, certain strains might do it for some people and for some people it might be all weed just like with pretty much any other medication. If you feel like it helps with your mental health it may be a good resource, and if you're worried about getting addicted you can do some research on strain types to figure out what you think might help and only use an allotted amount during periods of time you deem it necessary and safe. That way it registers more as a medication you're taking for your health than as a recreational drug.
I use it for a number of things, largely chronic pain, anxiety, and insomnia but despite having a fairly addictive personality I know how weed effects me and I no longer have worries that I'll be addicted so I also use it for more minor things (headaches, motion sickness, ect.) And recreationally because I don't really have any negative side effects from weed but I do from some of the other meds available for those things, including a family history of alcoholism so it makes for a better recreational substance for fun weekends and events that it's expected or encouraged to be intoxicated for. On top of that ive notice that it helps me unmask a lot easier as well as be a LOT more comfortable while I am masking, and ive even found a couple of strains that made me more focused and motivated to be productive. I've even managed to use it successfully to break minor executive dysfunction and hyperfixation periods that made it difficult to function.