Hang in there, do whatever the PT / doc need you to do to get over it.

My experience with injuries is that when you can't do what you want to do, there is a double whammy because you get more depressed when you can't do the activity that helps you stay positive in the first place. I found it really depressing when I could not play my fiddle due to overuse injuries, and equally so when I went through my first bout of bike-related hip/leg problems. At some point it will be over and you will be enjoying your cycling again, even though you are missing it now.

The suggestion to swim is probably a good one because at least you can stay active. If you can find another outlet or interest it will help you get through the "withdrawal" period. If you can,H make peace with missing out on the ride you signed up for knowing there will be another one down the road. Maybe you can volunteer instead, to be part of it, if it doesn't just make you feel worse about missing it. Maybe this is a time you could go to a bike maintenance class or try some other activity you have been putting off because you were too busy or focused on something else.

Wishing you the best for a speedy return to feeling good and doing what you want to be doing.