Evaluating string as template

Hi,
Is it possible to evaluate string as template?
Let say i have this:

{% set template = "{{ 'test' }}" %}
{{ template }}

and this gives me result: {{ ‘test’ }}

Does exist some kind of jinja function like this:

{{ evaluate_template( template ) }}

whose result will be: test

Here’s the list of Jinja2’s built-in filters.

Here are the additional filters available in Home Assistant.

There’s no Jinja2 equivalent of python’s eval function.