[os_regex] explicit declare parameters, which are not checked against null, as nonnull