Looks like there is some ligament sprain in your ring finger you need to get an xray done and on clinical examination if abnormal mobility is found buddy strapping of third and fourth finger is advisable
Next Steps
clinical examination and x-ray
Health Tips
avoid excessive use of painful finger buddy strapping if required