Just adding that on my side, I initially followed Ares9323’s solution, but it didn’t work, because I work on a project where classes where moved in a different folder, not simply renamed. It allowed me to reparent blueprint classes to C++ classes, but when opening the blueprints, I still had errors because the moved C++ classes where not recognized.
The solution using CoreRedirects given by dzemzmcdonalda worked.