swapExactETHForTokensSupportingFeeOnTransferTokens - works BSCscan not in web3 script?!

Hello guys,

I am experiencing something really odd with the swapExactETHForTokensSupportingFeeOnTransferTokens function on Mainnet.

I am running a trade script, since I am trading coins with fees I need to use the above mentioned function. It works flawlessly on BSc testnet. It works perfectly fine when using the function on Pancakeswap Router directly through BSc scan. However, when I try to run it from my script it immediately reverts.

The script works perfectly fine for tokens without taxes (like BUSD), but when taxes is active (like Safemoon) it immediately fails. I am really puzzled by this since it works on testnet - correction it doesn't work through main net on BScscan either. Anybody knows what's going on?