move the _get_build_regex function to utils