DONT KNOW WHAT THESE ARE?!

So lately I’ve gotten these marks & im not sure how I got them? Idk if it’s the underwear or by shaving.. if anyone has had these can you guys give me tips on how to remove them