What is this on my upper thigh ? An STD ?

this thing appeared on my upper thigh close to my private about a week ago. it has a stinging sensation alot of the time. dr said he thinks its a mole but im not sure. any idea ?