This was a really nice read! The best part was learning that there’s no need to actually parse tokens when building a Python linter (well, maybe there’s an exception) because you can leverage the already parsed AST or CST.
True! Although there's some lints that would require you to parse tokens, such as checking for single vs. double quotes, or number of spaces used for indentation.
However, python has a builtin tokenize module for that as well.