Could be either
A localized infection in that area of gums is difficult to diagnose without and exam and an X-ray .
It is possible that the tooth with the RCT is failing and you have an infection associated with that tooth. Or, possibly, the tissue around the wisdom tooth is infected from food impaction or eruption . See your dentist for a definitive diagnosis