The only way to go from STL to BREP is through decompilation style recovery/reconstruction, because of the semantic information loss, so it's a task that can only be done via LLMs or human CAD users. Essentially, they pretty much have to remake the model from scratch using the STL as a reference to make the CAD. There really isn't a good way to automate this without machine learning/LLMs.