What is this ?

This thingy is on my boyfriends finger and he says it hurts.

It kinda looks like a pimple and he can‘t even move his fingers properly.