Ask your doctor if you can do spin classes as physical therapy for it. You could do this at home with a trainer.
A number of years ago. I had a nasty crash and screwed my hip up. I used my trainer for physical therapy. 3 weeks after the accident I rode TOMRV. A 200 mile 2 day ride with 12,000 feet of climb. My hip barked a bit on the ride. But I was still able to do it because I spun on the trainer and did short rides. What was interesting, I still needed my cane to walk. The doc told me that was because in the saddle I was not putting any weight on it. I would assume that would be the same case for your ankle.