Thanks for writing to us.
From description swelling over ankle seems to be inflammatory in nature. it might be a bursitis
. tendenitis or acute attack of gout
I would suggest getting this evaluated by an orthopedician for an accurate diagnosis and appropriate management.
Wishing you good health...
Dr Saurabh Gupta.