Could I run my own backend, such as an Electrum server, similar to BlueWallet and SparrowWallet?
Yes, of course you can. However there isn't an installer and you would have to compile it by yourself.