get_substitutions pattern for list of list