How was it a mistake? Europe got a lot of good telecom infrastructure for a low price. There's no evidence it was compromised.
It was actually the US that was pressuring Europe to get rid of Chinese telecom equipment, as part of the first Trump administration's broader strategy against China.