Welcome to e health forum.
The cause of your symptoms is due to severe stress associated with the tooth removal, and the lack of proper food intake, after the procedure.
When you were on a limited and fluid based diet, for a long time, it is natural for you to have a low residue stool and resultant constipation.
Since it has been more than 1 month, since the procedure, you might have probably started to eat better as before. If you happen to have similar persisting soreness in the anorectal region, you can get some relief by application of Preparation H cream, which will relieve the discomfort and pain.
In addition, having Sitz bath, 2-3 times daily will be very helpful too.
In presence of constipation, you can take occasional over the counter laxatives, Fibre supplements like metamucil, and a high fibre rich diet which will be effective to relieve your constipation.
In case , the above measures, are not helpful, you might seek proper treatment and advise by consulting your doctor.
I hope this helps.