What about if we, instead of trying to hack this,
make this requirement as part of core code in VFSClassLoaderPolicyModule::determineVFSRoots? ;-)
Feel free to suggest a proper patch which would handle this wildcard matching.
Or perhaps we could go even more generic, any reg-exp would do -- if it's not too big of an impact on non-reg-exp usage.