So that is a knock sensor?

Not trying to replace it. I was under it today and noticed the wire coming off of it was cut/ torn. Might explain why I never get any knock readings LOL.