You do this by including antibiotic resistance genes alongside your modification. Now all modified cells are resistant to the antibiotic. Then you apply a small amount antibiotic to kill the unmodified cells. Now you only have the cells with your interesting modification.
This is the mainstay of molecular biology. Every lab biologist has done it. We even do it as college students in lab practicals.
Banning the use of antibiotic resistance genes in biological research is effectively banning all wet lab medical research.