@dtamajon, that patch worked for me, thanks a lot!
I'm still getting the "Subtheme cannot be created. Check permissions." error despite having allowed everything for the /themes directory and the root it is located into.
Even adding permission to the normal /bootstrap5 theme directory (which makes no sense, but I tried because you never know) yelded no result.
I have no idea what other permissions I should change.