[NTOS:SE] Capture the groups length when creating a token