AAP error: "template error while templating string: No module named 'ansible.module_utils.compat.version'. String: {{ mountfact | community.general.json_query( query ) }}",

I’m not using ‘ansible.module_utils.compat.version’. AAP is using that module, i guess.
Underneath playbook works locally, not in AAP. The fact mountfact is a dict. I’ve also tried to add to_json , from_json, and both, without any changes.
I made a SO post as i’m currently blocked with this. Not sure what to troubleshoot next.
This is part of a role, underneath my test playbook.