Ran into the same issue.
This is causes by ansible using some combination of python 3.6 and 3.9 which have separate
package stores.
Fix was to install pip 3.9 and then using pip3.9 install netaddr and jmespath.
> python3.9 -m ensurepip --upgrade
> pip3.9 install netaddr jmespath