I don’t think mongodb panache support creating indexes (base on this github issue: https://github.com/quarkusio/quarkus/issues/9801) you have to integrate quarkus liquibase for the that.
Here is the guide: https://quarkus.io/guides/liquibase-mongodb
CLICK HERE to find out more related problems solutions.