AFAIK - This is not possible with the "built in"tools in Archicad. You could create a new property using a expression which would create the new Id, but you could not overwrite the "element ID" property which I believe is your intent.
There are a few alternatives.
You could export a schedule to excel. Create a macro there to overwrite the Element ID field then re import into Archicad.
You could create a C++ AddOn to directly overwrite the "element ID"
Or the easiest, most straight forward way would be to create and use a Python script. The script would involve only a few lines of code and would offer the most control over the logic, filtering and formatting.
Windows 10 - Visual Studio 2019; ArchiCAD 26