Fix Jinja2 error module 'jinja2.ext' has no attribute 'with_' in version 3.1 and newer.
Jinja2 extension jinja2.ext.with_ was deprecated and removed from Jinja2 version 3.1 and newer.
Remove extensions=['jinja2.ext.with_']
as with is included in Jinja2 core.