Regular expressions are sequences of characters that form a search pattern. They are extremely useful for extracting information from text such as code, files, log, spreadsheets, or even documents.
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 ...