Code already registered: tried factory resetting 10+ times

If it is a V3 hub then it does not require a code to connect it to the app. You may want to follow the guide in the following thread; Troubleshooting SmartThings Hub 2018 and Aeotec Hub

@Itati will be able to tell you which hub you have from the serial number and it the quide I pointed to is needed.