is passing a variable to a twig macro inside the assets function even possible, for example it doesn't work with with concatenaciton:
Macro:
{% macro card(image) %}
<div class="card">
<img src="{{ asset('assets/images/' ~ {{image}} ~ '.svg') }}" alt="" />
</div>
{% endmacro %}
Calling the macro:
{{ macros.card('questions.svg'}}