Your finger is mildly infected.It is clearly evident by the pus that has come out.
Due to associated inflammation,the surrounding area will be swollen and red.You will have pain too.
But,nothing to worry.
Please consult your doctor and get good Antibiotic and Anti inflammatory drug.
Put a dressing with application of local Antibacterial ointment like povidone Iodine
It will heal soon.
Wish you speedy recovery.