Welcome to healthcare magic
It could be a sebaceous cyst
which got inflamed and infected due to squeezing. You would require a course of antibiotics and anti inflammatories. Consult your primary care
physician and get these prescribed.
Once infection subsides you may consider surgical excision of the cyst at a later date.
Hope this helped