That's always possible, but there may be ways around that. For starters the Chinese and other producers will only take gold. So there will have to be middlemen to take your gold and give them gold and the middlemen can bribe the PTB. The gold can have nominal numismatic value and be exempt from the confiscation. Or the government may not be around by then. Or simply don't sell, just keep it as insurance.
“it will be confiscated”
Which is exactly the reason not to let the tyrants confiscate our defenses.
First, you don’t tell the feds you have the gold.
You hold the gold and your defenses for survival in the chaos that soon follows attempts at confiscation.