For matches like **/*.py we need to place the wildcard last, so that it can override previous directory matches (otherwise the directory matches override the wildcard). Relax the check_codeowners.py order check to allow this.
add tools/ci/python_packages/idf_ci.py for some util functions used in ci and needs multi-os solution