z.lua has multiple matching algorithms, the default one is simiar to z.sh, in your case, you may look into the enhanced matching mode, by:
eval "$(lua /path/to/z.lua --init bash enhanced once)"
FYI: https://github.com/skywind3000/z.lua#enhanced-matching