Well, I can’t clearly tell from the photo whether it’s paronychia or an ingrown nail. Both conditions may require medical attention.
Please consult a general surgeon once for a proper examination. Once it is treated appropriately, it should help reduce the chances of recurrence.
Next Steps
Get yourself examined from a general surgeon