This is one of the benefits of the transaction data being on-chain
Goes to show that such blockchains like Bitcoin, Ethereum, etc are NOT anonymous and never intended it to be as such in their white-papers. So it's quite disingenuous for anyone to keep suggesting that they are 'anonymous' whether or not if they are skeptic, supporter or neither.
What you are looking for is privacy coins like Monero, Mobilecoin, Zcash or Grin that specifically aim for privacy guarantees which are used to hide wallet balances and transaction details. But the regulators are going to crackdown on privacy ones anyway by making it harder to trade them for fiat via exchanges.