When a companion drones tries to build something that has item-with-tags the tags are removed before building.
This also happens when deconstructing an entity that has a item-with-tags in its minable result. (added during script event)
Either blacklist the drones from interacting with item-with-tags or copy the tags when using LuaEntity.insert()
I found this bug while testing with this mod https://mods.factorio.com/mod/factorissimo-2-notnotmelon