Fix issue where regex wildcard was not matching correctly