Update jinja2 dependency to 3.1.3 to fix vulnerability
This should fix 4 dependabot alerts.

Fix #2291
Update jinja2 dependency to 3.1.3 to fix vulnerability: This should fix 4 dependabot alerts.

Fix #2291