Bitcoin Core v.23 import private key question
Hello. I have a private key which I have imported (importprivkey in console) into bitcoin core v.0.17.1. Balance for example 1 bitcoin
Made a transaction of 0.1 bitcoin to a P2PKH address. The rest is 0.9 bitcoins.
Removed bitcoin core v.0.17.1 and wallet.dat
Installed bitcoin core v.23.0
Imported the private key. Balance 0 bitcoins.
There are 2 transactions:
0.1 bitcoin (transaction)
0.9 bitcoin (I think this is change, sent to bech32 starting bc1...)
Do I understand correctly that I lost my bitcoins, which were sent as change to the bech32 address, or bech32 addresses are generated from one private key and the change went to that address? Is it possible to restore them?