I am trying to replace a broken head phone wire (with three terminals).
Here is the overview of the headphone, showing the broken part: 
Here is the close up of the other end, showing it has three terminals (or wires):
I am thinking of buying this(https://www.amazon.com/dp/B07Y8KGJKL) from amazon and replacing it. It seems like the right fit but wanted to check with experts here.
I could replace the headphone itself but my kid will break it again, so I need to learn :)