In https://github.com/webpack-contrib/file-loader#placeholders there's the pattern match placeholder [N] documented:
The n-th match obtained from matching the current file name against the regExp.
I would expect that copyFiles would use the matches from pattern, though [N] is not replaced. For example in the following code
Encore.copyFiles({
from: './assets/',
to: '[path][0]',
pattern: /.*/,
});
[0] should be replaced by the entire tested string, though the resulting filename is always [0].