Spanish permiso de conducir number: eight digits then one digit or letter, per the Purview Spain driver licence definition. The number is the holder DNI, which is why this shape is not independent. Reproduced collision: both examples are matched whole by ES_DNI_NIE as well, so every hit here is also a DNI hit and the two labels should be read as the same underlying value seen through two lenses. The final character is the DNI check letter but nothing is verified, the match is on shape alone.
Label: ES_DRIVING_LICENCE
(?<!\w)\d{8}[0-9A-Z](?!\w)
The permiso de conducir 12345678Z is recorded in the file. → 12345678ZLicence number 87654321X repeats the DNI of the holder. → 87654321X1234567Z1234567812345678zTags: es, government-id, identity