None of the above solutions work at the moment. Following method works fine (tested in elementary OS 6 ODIN and OS 5).
Full guide: https://www.debugpoint.com/2021/07/change-lock-login-screen-background-elementary-os/
Open a terminal in your elementary OS.
Install git and following dependencies for greeter package.
sudo apt install git
sudo apt install -y ...