It's called paronychia, infection of the skin around finger/toe nail swelling redness pain and pus filled area forms
Next Steps
most of time it's not serious,heals by itself
Health Tips
soak your infected toe in warm water 3 times a day
pain killer like ibuprofen
if infection is very painful doesn't get ok with home care ,visit an doctor