bpo-34013: Don't consider a grouped expression when reporting legacy print syntax errors (GH-27521)

(cherry picked from commit 208a7e957b812ad3b3733791845447677a704f3e)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
diff --git a/Grammar/python.gram b/Grammar/python.gram
index 70f2de8..057bcb6 100644
--- a/Grammar/python.gram
+++ b/Grammar/python.gram
@@ -849,7 +849,7 @@
     | disjunction
     | lambdef
 invalid_legacy_expression:
-    | a=NAME b=star_expressions {
+    | a=NAME !'(' b=star_expressions {
         _PyPegen_check_legacy_stmt(p, a) ? RAISE_SYNTAX_ERROR_KNOWN_RANGE(a, b,
             "Missing parentheses in call to '%U'. Did you mean %U(...)?", a->v.Name.id, a->v.Name.id) : NULL}