Is the card still valid for my use, or can they make withdrawal with just that number?
That’s a sadly common scam.
https://www.aarp.org/money/scams-fraud/info-2019/irs.html
I’ve received a lot of those calls myself. Saying the IRS is blocking my SSN or sending the police to arrest me.I am very sorry. If you gave the redemption codes to the scammers, those cards will already be drained and the proceeds laundered beyond recovery.
Google suggests you contact your local law enforcement agency and report the scam to Google using the instructions on this page:
https://support.google.com/googleplay/answer/9057338
Never ever trust anyone that asks to be paid in any kind of gift card for anything. No matter how official they sound or what threats or promises they make.
Do NOT contact any email or phone number that posts here saying they can help you if you contact them directly. That’s not Google Support. That’s another scammer looking to cheat you again