bpo-44368: Ensure we don't raise incorrect custom syntax errors with soft keywords (GH-26630)

(cherry picked from commit 457ce60fc70f1c9290023f46fb82b6a490dff32e)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
3 files changed