you have nail bed infection followed by injury
the presence of pus clearly indicates that there is a infection..
if the pus is not completely drained, it will increase..
see your surgeon, get it drained properly..
later on you need antibiotics and analgesics.
all the very best..