Another use-case for Finitomata, my beloved library.

https://rocket-science.ru/hacking/2024/03/03/finitomata-for-the-win