bpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>