b"\x00" * 10 inside an implicit bytes-literal concatenation block is a multiplication expression, not a literal. Python's greedy concatenation absorbs the b"\x00" into the preceding chain, applies * 10 to the whole thing, then finds the following b"\x21..." literal stranded after an expression without a comma — SyntaxError. Fix: inline the 10 null bytes as a literal. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>