I do not think it is very serious health concern to see a doctor.
It most probably seems to be due to friction and constant rub. You can apply liquid paraffin
, Vaseline, or petroleum jelly on the affected part of the anus. It should be gone in a week's time.
Get well soon.