I was getting the following regex error:
youtube_dl.utils.RegexNotFoundError
Looking at the raw JS in jscode it seems that the script is trying to find the "sL" bit: [this obviously changes each time]
...yt.akamaized.net/)||d.set("alr","yes");c&&d.set(b,(0,window.encodeURIComponent)(sL((0,window.decodeURIComponent)(c))));return d};
But it failed to match the original regex (line 1194) because of the additional '(0,window.encodeURIComponent)(' part
This new regex (added on line 1195) fixes the problem and it works for me!
I find it really hard to force youtube-dl go via the _parse_sig_js function to test. But I have reproduced the error at least four times and confirmed the new regex solves the problem.