Is there a resource where I can donwload E. coli assemblies grouped by their pathotypes?
If ENA archive contains such information, then you can access it programatically through the EBI api.

Also you can access the NCBI database programatically through their eutils.

In both cases you can access annotations, though not sure if they contain what you are looking for in all the cases.