Hi, i have a bump on the top left side

Patient: Hi, i have a bump on the top left side of my penile shaft. I believed it may be an ingrown hair but after last night im unsure;it popped on its own nd left the area it was in with red skin showing in the circle, i showered and went back to bed then woke up and now its back to jus how it was before. It doesnt hurt but its quite uncomfortable. I went to the doctor a day before because my left groin lymph node is swollen, i was giving antibiotics and the swellen has gone down. Im not sure if the bump and lymp node are connected. Im confident it isnt a std i am sexually active with one partner. What is it i have and what can i do to fix it? Please help

Doctor: