Hi welcome to healthcare magic forum. It appears that the spots are due to fungal infection
. It usually transmitted from person to person, by clothes commenly used , and the blades commenly used.
I advise you to consult a dermatologist
, for investigation s and treatment,
I advise you not to use under garments, soap, razor, etc commenly with friends.
Wishing for a quick recovery and thanks for calling.