Unexpected "-2" added to IDs

I’m facing a very annoying issue. Webflow seems to automatically add “-2” to some of the IDs in my form. This would be totally understandable if there would be a duplicates of those IDs within the page, but that’s not the case. I only have variants of that form on separate different pages that use the same IDs. My custom code heavily rely on those IDs and it becomes a big burden.

Is there any way to avoid that? I’m slowly getting tired or manually updating everything every so often an monitoring even when I don’t make changes to those pages.