the problem of converting *.foo.bar to the simpler regex /foo.bar$/ is the way that wildcards are done in subjectAltNames -- where they cover only the level they are on, and not below it.
hence why we the regex for wild cards is 
$re = qr/^[^.]+$value/
since the 'dot' breaks the wild card.