Not been a problem with my 12 Pro + Apple leather case. Again, Apple cases aren't hermetically sealed - ANY edge on the case can get dust underneath it. Easy enough to take the case off every once in a while and give everything a quick wipe down.
Easier still to just not put the case on in the first place, is all I’m saying