Jinja2 spacing could be improved: {{ pre_processed_datadog_apm_libraries | default([], true) | difference( [(item.item | regex_replace('$', '-1') | regex_replace('^datadog-apm-library-', '') )] + [(item.item | regex_replace('[:]latest', '') | regex_replace('^datadog-apm-library-', '') )]) }} -> {{ pre_processed_datadog_apm_libraries | default([], true) | difference([(item.item | regex_replace('$', '-1') | regex_replace('^datadog-apm-library-', ''))] + [(item.item | regex_replace('[:]latest', '') | regex_replace('^datadog-apm-library-', ''))]) }}