Chosen Solution

Is there a replacement keyboard and guide for my MacBook Pro 2017 touchbar A1707. I damaged the cable while replacing the batteries.

I’m pretty sure for this model you can’t simply replace the keyboard because it’s bolted to the upper chassis, you might need to replace the entire palmrest part. On a side note, next time if the battery needs a replacement, your 2017 model qualifies for the keyboard repair program that Apple has (as long as they’re running it). Whenever they replace they keyboard they also “replace” the battery as well because Apple treats anything that’s part of the palmrest as a single replacement part, which includes the battery. I’m not telling you to purposely break your keyboard to get a free battery replacement, I’m just saying that my 2018 Macbook Pro needed to be repaired under the program because my friend got chalk dust under some of the keys (and subsequently got a new battery)