That sucks. I hope you have a smooth recovery and are able to get back to training soon.
As SNES mentions, use it as a learning opportunity and move forward. I generally recommend getting back on the mat as soon as possible after injury, with a few caveats -- technique training only for several weeks , no live training. Then get back to rolling but keep it light (like flow rolling). Wait for a while to resume full speed stand-up training.
Also would recommend you be up-front with training partners and tell them you're returning from a shoulder injury and that you need to train/roll light. And when you return to full speed training, tap WAY earlier than you think you have to for shoulder attacks (Kimura, Omoplata, Americana, etc.).
I had a similar shoulder injury months ago and rushed my return to full speed training and was sore for months because I was too stubborn to roll light. Covid finally forced me to take a much needed break and the shoulder healed up