Already tried but its not able to generate my address, since I think the pathway used is not upto the BIP32 standard and more on the older pathways used by developers or maybe custom pathways. Thats where the situation got tricky.
This thread is a bit old, and it seems no one mentions this tool called xPub scanner that's the only one that you can easily find the derivation path of the address you're looking for.
I'm going to share it here if someone experienced the same thing and wants to find the right derivation path of the target BTC address.
Check the
xPub Scanner here and follow the guide how to run it.
It can also be used to scan all used addresses or with balances; the result gives you the right derivation path of each used addresses.
Alternatively to this scanner you can use this too
https://blockpath.com/wallets/local/101?action=appxpubThe only problem using this tool is that it only supports legacy wallets segwits are not supported yet.