Insufficient version of pexpect installed (2.3), this module requires pexpect>=3.3

Dear members,
am having some issues executing expect and getting this error when i run my ansible playbook

Insufficient version of pexpect installed (2.3), this module requires pexpect>=3.3
fatal: [XXXXXXXXX]: FAILED! => {“changed”: false, “msg”: “Insufficient version of pexpect installed (2.3), this module requires pexpect>=3.3. Error was ‘module’ object has no attribute ‘_run’”}
…ignoring

How can I have this resolved?

The error is pretty clear - make sure the host has pexpect 3.3 or greater installed.
This is also stated in the docs of the module: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/expect_module.html#requirements