Pinching pain in ring finger?

lu

So off and on I’ll get this pinching type pain in my ring finger. Like I’ll only notice it if I take my fingers and tap them on something. I’ll have it for a few weeks and then it will go away? Anyone know what this could be?