The `.` character is invalid as a group name in regex, replacing by `__`. The bug arose in `lexer._build_mres`.