PEP515 allows separators, but does not impose any restrictions on their position in a number (except that a number should not start/end with a separator and there should not be two separators in a row).
I wrote a plugin for the popular flake8 linter. This plugin will check your numbers in code against simple rules.
pip install flake8-digit-separator
flake8 . --select FDS