@nagas Unfortunately this happens to work by accident and not by design.  We do not support binding regular expressions to variables, and as such this particular use is unsupported.

On the same point, `loadyaml` and `hiera` are designed to load data into the Puppet DSL, they are not intended to load arbitrary ruby objects using `!ruby/`.

As a result of this, I'm going to have to reject this change from stdlib, though it may be suitable for a third party module or extension, however loading arbitrary ruby objects remains unsupported in the Puppet DSL.