Why does Regex depends on certain version of macOS?

I had to upgrade my macOS to version 13 and XCode to version 14 to use Regex (Apple Developer Documentation). I am curious why this language feature depends on the OS version.

This has been discussed before: Why the new features in Swift 5.7 needs the latest OS version support?

2 Likes