The lack of acknowledgement from Apple in this regard is mind boggling, with it clearly happening in a variety of combinations with external hardware, both through hubs/docks or displays with integrated hubs - in my case with a CalDigit USB-C Pro dock (using Thunderbolt 3) or random LG and Dell monitors directly.
For CalDigit users, I'm also a bit baffled that their support seems to still tell people they're unaware (reading other comments), since they have this knowledge base article up since January 2021: https://www.caldigit.com/my-intel-based-mac-crashes-when-un-docking-or-re-docking/
I've been trying the workaround suggested in there of waiting for a couple seconds between unplug and re-plug before/after going to sleep, which anecdotally seems to have reduced the number of kernel panics for me.