There is a risk for syphilis from oral sex, but the chances are lower than with vaginal or anal sex.
The sore would appear at the point of infection, so it's unlikely it would be up near your wisdom tooth on the cheek side.
Syphilis is uncommon in most developed countries, like the UK, US, Canada, countries in Europe, etc.
Get your tooth checked out, and if it's concerning you, get a syphilis test now, and at 6 weeks, but my guess is that it's negative.