Modern concrete has steel rebar, which is very useful, but eventually corrodes. Stainless steel rebar could be used if longevity mattered, but usually it doesn’t because the building will likely become functionally obsolete and need replacing before then.
> Stainless steel rebar could be used
There are also coated and non-metallic rebars.
You could wouldnt even need that. https://de.wikipedia.org/wiki/Opferanode