OrionBoy3111,
You have what is called a paronychia. This is a soft tissue infection just at the edge of the nail complex. Sometimes, a small amount of purulent material will drain out of the lateral nail fold.
Most of the time, the body will take care of the slight skin injection. You should wash the area thoroughly with soap and water. And, then keep the finger clean and dry.
If the redness, warmth, discomfort continues or gets worse, then you may need to see your physician. Sometimes a short course of antibiotics is needed. On rare occasion, if nothing else works, the nail plate has to be removed so that the any collection of pus under the nail can be drained.
But, again, usually the body will take care of the infection. Just keep the area clean and dry.
Good luck.