Swift `Regex` allows you to use and/or implement your own custom regular expression behavior using [CustomConsumingRegexComponent](https://developer.apple.com/documentation/swift/customconsumingregexcomponent). We should examples of implementing and using this.