Refactor hidden module regex logic
Refactor hidden module regex logic

Instead of running the regex on all module names, we now verify
if the module is hidden once we have verified that it matches
the module regex. This simplifies the logic.

cmd-ntrf/jupyter-lmod,cmd-ntrf/jupyter-lmod,cmd-ntrf/jupyter-lmod