There is a tool but I never had chance to used it, is tool you can buy via contact, and it's maybe for a developers, because I think is more like to the C3D kernel, but I'm not sure. https://c3dlabs.com/en/products/c3d-toolkit/b-shaper/
Anyway here some examples:
If the object is simple you can rebuild with many tools like FreeCAD.
I could not find a price for C3D B-Shaper, but a companion module showed $1000 per month, so I am sure that the program is way beyond my budget.
There are a few sites explaining some of the mathematical type steps used for the conversion to b-rep, (Segmentation, Normals, Curvatures...). It is not an exact science...
Also the program appears to be RU.