welcome to HCM
It might be infection of your thumb can be paronychia
you should consult surgeon and take proper treatment including antibiotics.
if required incision and drainage
can be done if it contains pus.
do you have any history of trauma over it.
please visit surgeon and take proper treatment.