Actually the META-INF/services approach worked, after I put it correctly as a standalone file
META-INF/services/org.hibernate.boot.model.FunctionContributor