[2401.13524] Combinatorics on words and generating Dirichlet series of automatic sequences