From what I can tell Symfony wraps these errors in a styled error block so it messes with GitHub's masking. For example, newlines breaking up the token are apparently enough to trick the masker since it's not a substring anymore.
For your example:
Line 34: ghs_fdsafdsarewqfdsa...
Is probably long enough in most cases to break to a new line.
Also, those blocks get "interleaved" like this:
ghs_fdsafdsarewqfdsafdsa
fdsardsardsafdsafs......
So there are now 's within the token, also breaking the substring matching.
This is kind of eye-opening for me -- I have never thought about how styled output like this could cause logging leakages.