Hello from JustAnswer.
From your description, it does sound most like it is inflammation and infection of the hair follicles, called folliculitis. It is possible to get some inflammation of the follicles without infection solely from shaving. However, since there is a swollen lymph node, that would be more likely seen with an infection, even if it started from the shaving.
If you could attach a picture of the area, a better comment can be made, but from the description, it sounds mostly likely to be a folliculitis.
There are limited options that are available over the counter. The topical medicines that you are using are reasonable and the best that can be done over the counter to relieve the inflammation and infection. It also may be soothing to apply a moisturizing cream. Soaking in salty bath water also may be soothing. However, a more significant case of folliculitis will frequently require oral antibiotics, so if these home interventions do not get control of the symptoms, you would do better to see your doctor.
If I have answered all your questions, please rate my response Excellent (click on the 5th star).
However, if I can provide any further information or clarification, please let me know.
Please bookmark my profile for asking future questions.
This is a link to my profile: