Looking to extract string of numbers from messy column values

It would make sense to mention such challenges in the initial round so the solution might try to take that into account. Another approach could be to employ a (local) LLM and tell it to extract the numbers (or more the IDs). Key will be to describe what you want and make sure the resulting data always has the same structure (JSON). Maybe send blocks of data there.