Hi..
Can understand your concern..
As per your complain pain in jaw that radiates to temple can be most commonly due to dental infection..
As you have recently undergone dental treatment any recurrence of infection in any of the tooth can lead to pain that can radiate to the temple as well as the entire jaw on the same side..
It can also be due to inflammation in the gum flap above the erupting or
impacted wisdom tooth due to deposition of food debris between the tooth and the gum flap leading to inflammation of the gum flap and the symptoms you explained can be apparent in case of inflamed gum flap..
Ulcers can be
canker sores or traumatic ulcers caused due to trauma to the mucosa during dental treatment. In case of pain in the sores you can apply numbing gels like Mucopain or Orabase gel for relief..
I would suggest you to consult a dental surgeon and get evaluated clinically so that proper check up including
x ray where ever required can be done to find out the exact cause of the pain..
Treatment will be decided as per the diagnosis..
Hope your query is solved..
If you find the answer helpful please write a positive review and click on find this answer helpful as a token of appreciation..
Thanks and regards..
Dr.Honey Nandwani Arora.