Let's say that "I was trying to open the lock with the key, but someone had filled the keyhole with chewing gum, and I couldn't get it out."

Can we now say that "I couldn't get the chewing gum out."?
yes