From the announcement of version 1.2.6: "Apps that use the Material 3 Theme as a dependency now have import m3.components as m3 automatically added to Form code."
The problem with this is that if you upgrade to version 1.2.6, and then later downgrades to an earlier version, all the "import m3.components as m3" are removed, including those that were there before, and thus it breakes the code.
I would wish there were no automatic imports at all, alternatively if it was possible to switch them off. I constantly deletes automatic imports of services (users, google, facebook, server) that bloat my imports where I don't need them.