Good grief ! I didn't have a problem before with 14.1 but now after installing 14.4.1, my M2 MacBook Air no longer recognises my keyboard attached to the hub on a Dell U3219Q display connected by USB-C, even after multiple reboots. I didn't have a problem with 14.4 so instead of fixing the problem, 14.4.1 seems to have created the problem for me !
[Update - so looks like the problem has to do with the "allow accessories to connect" setting. I had to change the setting to "Ask Every time" so that the next time I connected the monitor, I had to give it permission for it to connect. After that I changed the setting back to "Ask for new accessories" and it continues to work even after unplugging the monitor and plugging it back.
I have one bluetooth and one USB keyboard so it's possible that immediately after upgrading to 14.4.1 I had answered "no" to allowing the USB keyboard to connect. Alternatively, Sonoma 14.4/14.4.1 has trouble keeping track of devices that have been connected through a hub and forgot that I had already approved the keyboard before the upgrade. ]