listreceivedbyaddress missing transactions after restore
I've had the same issue after restoring from wallet.dat. It's probably a bug described in https://github.com/bitcoin/bitcoin/issues/20293. Possible way to fix it is by setting an empty label to the address that became change:
bitcoin-cli setlabel &quot;{address}&quot; &quot;&quot;