Unable to test Fail2ban

I usually use Command Shell to test new Fail2ban jails with Fail2ban-regex but today when trying to test a new jail I got the error

sh: 1: Fail2ban-regex: not found

So I tried testing a jail I am sure is working and got the same error. Has anyone got any idea what that message means?

The command is fail2ban-regex not Fail2ban-regex. So, just a typo?