I'm using an old wired Apple keyboard (plastic keys) with my 2014 iMac. It had originally been used with a 2008 Mac Pro. It works without problems. I also have a more modern wired Apple keyboard with metal, chiclet keys. It works fine but I prefer the feel of the plastic. IMHO, any wired Apple keyboard should work.
MacBook Pro - M2, Ventura 13.6 Safari Tech Prev 17.0 Safari 16.6 Firefox 116.0.2 iPhone 7 Version 15.8