"Bacteria" is a general term that doesn't mean much.
Fecal coli-form now would be telling us something.
If the well water is contaminated, then the piping is also. The entire system must be treated with chlorine.
If the driller contaminated the well, a proper and complete chlorine treatment should fix it.
If the water table is contaminated from another source, the problem will be likely to return.