Regex in shell fails to evaluate

Standard shell is ash and not bash.
Regex is one of the differences