Minecraft Bedrock structure tools
Open Omni-Structure Editor with its connected-material fill tool selected.
Choose the replacement material, then target an existing connected material region in the structure.