Fix constant name regex in Module methods