When using pyright, it does not show the re.Scanner module. It is accessible, but not mentioned in official documentation: It would be nice to add this into the re.pyi definition module ...