yt-dlp (youtube download application) has stopped working.
nick@shuttle:~> yt-dlp -o "%(title)s-%(id)s.%(ext)s" pOcfW0zv7cY
DeprecationWarning: Python version 3.6 is no longer supported! Please update to Python 3.7 or above
https://www.youtube.com/watch?v= pOcfW0zv7cY: Downloading webpage
ERROR: module 're' has no attribute 'Pattern'
nick@shuttle:~>
As far as I can see, Python 3.7 or above is not available for openSUSE Leap 15.4.
You did not explain where this program comes from, how you installed it, whether it worked before and when it stopped working so any answer will be just a wild guess. Anyway, quick test using version included in openSUSE works here:
bor@localhost:~> yt-dlp -o "%(title)s-%(id)s.%(ext)s" pOcfW0zv7cY
https://www.youtube.com/watch?v= pOcfW0zv7cY: Downloading webpage
https://www.youtube.com/watch?v= 8.2% of 504.92MiB at 1.83MiB/s ETA 04:12^C
ERROR: Interrupted by user
bor@localhost:~>
I removed yt-dlp, then installed opt-python37 from the repository you linked to. It installed packages opt-python-libpython3, opt-python311 and opt-python37. I then reinstalled yt-dlp, but I get the same ouput.
Do I need to do something to connect yt-dlp to python37?