dm's guide has optional rules so that lvl 20 characters can still get more op from earning Xp.
these are mostly Feats and Ability Score Increase every [ ] XP you get.
"The ability score can exceed 20 but it can't exceed 30" is what it says.
so u can max out ur dex to 30, that gives u a +10 for dex.
Expertsise in stealth gives u a +12 at lvl 20, that so far is +22.
Then also there is a thing in DMG which is an Epic Boon which u can get at lvl 20 or lvl 10 if you have an Aberrant Dragonmark. The Boon of Undetectability (or something similar) is +10 to stealth and you cant be detected by magic. Thats +32 to stealth.
Also, i forgot what level it is but rogues have a feature where "you can treat any roll of 9 or lower as a 10" if you have proficiency or expertise. that means no nat ones, and therefore with +32 the lowest possible score is s 42 for stealth.
And it would be hard to find someone with a 42 for stealth.