Thank you for your query.
I can understand your concern. In infants such marks can appear because of a dry skin
and the skin folds at the ankle appear injured. I suggest that you apply some bland ointment or oil for a few days and observe. In case the mark persist then it shall be advisable to consult your doctor.
I hope I have answered your query to your satisfaction.
Wishing your son an early recovery.