Sounds like a ribbon cable needs to be reseated connecting board to the keyboard/trackpad
will require proper tools and a teardown video, but is resolvable - it's been a while since I've opened a surface so I'd need to know the exact year/model to further comment.
no idea why it happened right after the reinstall, that seems like a red herring to me because they were working at one point after the reinstall - for them to suddenly stop and persist beyond a power cycle signals hardware to me.
price.