[Bugfix] Tweak regex so that things still work if list_func returns items suffixed by path separator (like the case in Complete::Module)