A long time ago, I create a package for a String datatype that works with Regular Expression. It is quite a simple solution.
This can work well with packages like the OpenAPI-Suite, where you can then use the "Regular Expression String" as the type for properties of the validator objects where the Swagger contained a Regular Expression.
I am proposing we start a common package of datatypes for use. The package name to use can be provided by the admins.