Fix translation of DSL's containing Regex

To be merged after 6.0.0.Beta3, when master becomes available.