Had a very similar injury which resulted in the sole of my foot facing towards me and flapping around like a fish out of water once they had managed to get my shoe off. (sorry about the video quality, this was a Gen1 phone from back in the day. The doctors that treated me initially said I'd be lucky to walk properly again but after 6 months on crutches and lots of physio, I have to remind myself sometimes which ankle it was. Physio is the key.
Flash forward a few years and I fractured my tibial plateau SUPing and had another year out of the water. Again the doctors were very downbeat on my prospects, but again, plenty of physio and I'm back in the water surfing and suping.