What is this on my thumb?

Been there for months now. It has white dots inside of it. (It’s typically not red, it was scratched by my cat)