Urgent!

I’ve had this bump like wart thing on my thumb for a little while now, about 8 months ago it went away when I scratched it (which made it bleed a lot) and then it came back about 2 months ago, tonight my hand got itchy and without realizing my nail ripped it the bump. What could this be? I’m honestly getting really concerned and when I pull the thing back there’s bumps underneath the ripped part of the skin and there a ‘dent’/hole in my skin.