and i get
bc1q7gmyvmrg2fwvyap46kztuqmg0ukvyanxcqctxl and key = L4iHGYsgeMW5HyGXhpuzvFjESsrSAaoReb6QqreZkfVuZjSUJ4AJ
but if i give this key Electrum or https://www.blockchain.com/ wallet i dont get bc1q7gmyvmrg2fwvyap46kztuqmg0ukvyanxcqctxl
i get 1KqcH1oRstqekPXbwhtikewr9XRXD4tXMs
how can i get bc1q7gmyvmrg2fwvyap46kztuqmg0ukvyanxcqctxl in wallet??
You should add prefix "p2wpkh:" when import private key for Bech32 address. However, when i tried it on Electrum 4.0.7, i got address bc1qe6366c3vxt83duagx38zrftkjqzz0u8kn6ylje instead. Something is wrong with your code.