My regex to check for this didn't catch the mistake because the repetition was split between two lines.