You could have Bartholin's abscess
- infection of Bartholin's gland normally found inner side of vaginal lip. It occurred due to injury//infection from shaving kit. After you squeezed pus came out and the swelling reduced with hot compress. You can continue hot compress but if infection persists then you may need antibiotics.