Use List.generate on the regex parser