Instead of a total ban based on how friendly we feel towards certain countries, a trust but verified approach should be adopted. Establish comprehensive, robust and transparent security requirements and regulations for foreign tech firms to comply and allow them to compete on a level field. Review source code and hardware design for critical components, like what UK and Canada are doing.
A competent government should be able to achieve security without imposing unnecssary costs on consumers and companies using foreign suppliers.