Hello,
It can be due to contact dermatitis or perioral dermatitis. Treatment of perioral dermatitis consists of oral antibiotics and anti-inflammatory drugs. A mild soap or soap substitute, such as Dove or Cetaphil should be used for washing. Scrubbing should be avoided.
Doxycycline is the preferred antibiotic for perioral dermatitis but minocycline can also be used.
It is very difficult to precisely confirm a diagnosis without examination and investigations and the answer is based on the medical information provided. For exact diagnosis, you are requested to consult your doctor. I sincerely hope that helps. Take care and please do keep me posted on how you are doing.
Try changing toothpaste brands. Use neem soap or tea tree oil on the spots as they are likely bacterial.