I know that when my sugar gets above about 135 to140 I get more of them at the base of my scalp behind my neck. I also had one near a skin tag on my side.
My doctor told me there is a relation.
Lately I have been exercising and controlling my sugar and they have all disappeared. Hope this helps.