Charcoal, 74 68 bytes
Try it online! Link is to verbose version of code. Explanation:
Loop over the characters of the input.
If the current character is a closing bracket and we're expecting the other sort of closing bracket then append that bracket now. Keep ...