I've already advised you that a syphilis sore would appear at the point of infection. That means that it would appear in your mouth wherever syphilis entered from his sore.
https://
www.medhelp.org/posts/STDs-STIs/Syphilis-risk/show/3079796
Even if he had a sore you didn't notice, it would likely be on your tongue, maybe the roof of your mouth, or your lips. Having a sore up by your wisdom tooth is unlikely to be syphilis.
Good for you for quitting nicotine. That's hard, hard stuff.
Just go test. You're concerned. Go test. You can ask a zillion questions, but I'm only going to tell you to test.