I had ribbon cable break on my 2017 MacBook Pro w/ TouchBar. They replaced the entire top shell of the computer and also fixed the keyboard at the same time.
This was about 4 years ago. Keyboard started going bad again this last year, cmd key falling off, ‘O’ key always has multiple inputs for a single keystroke.