I'm sorry to tell you so far Wazuh doesn't support Composable templates yet.
With the new Elasticsearch template formatting, it would be necessary to migrate our current template for Elasticsearch to this new format.
Researching in our communities channels (slack and here).
I found a video that could help you:
Composable Index Templates - Daily Elastic Byte S01E02 in which they explain the differences in detail and also show step-by-step how you can create composable index templates.
Also, I suggest you read the elasticsearch documentation or contact them for more details.
I hope this could help you.
Best regards.