The key here is macOS, not iOS.
Data detection can easily be disabled on iOS via WKWebViewConfiguration.dataDetectorTypes, but this property is not available on macOS.
Background:
I have a WKWebView
embedded in a macOS app that shows a contenteditable DIV. I would like to prevent that links are automatically detected as the user types and turned into hyperlinks.