Only a doctor who examines you will be able to tell you for sure what they are, but they may be oil glands that you are popping, or it's folliculitis. Stop popping them, and let a doctor see them. If it keeps happening, you may need an antibiotic to cure it.
It doesn't sound like an STD, but get it checked anyway.