Segmentation fault 11 when implementing WKScriptMessageHandlerWithReply

Hi, I'm trying to implement the async handler of WKScriptMessageHandlerWithReply -> see yellow box in this reference.

This is the method signature:

func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) async -> (Any?, String?)

But I end up with a Segmentation fault: 11 compilation error. I'm compiling with Xcode 13.4.1 (13F100). Did anybody successfully use this API or now a solution to fix it?