Thank you Zaguru and Omega. It worked. I didnt even know that there is something to be prefixed while importing the private keys. Thank you so much.
There's no real standard for whether a private key generates a Bech32/SegWit address, a P2SH (nested SegWit) address, or an old-school P2PKH address. It's totally up to each individual wallet to decide what type of address to derive from your private key and so if you want a specific address type for your private key, you have to explicitly "tell" your wallet what you want. This is where prefixes come into play. Kinda annoying but it is what it is.