So there should be a way for Nested SegWit (P2SH) too.
The point I was making is that you can't know the script type that was hashed by seeing the address alone. In other words you
can validate a P2SH address and get the
20-byte hash out but there is no way to tell from the address if the script type which is hashed is P2WPKH or P2WSH or a legacy redeem script or something else entirely (eg. P2TR-P2SH).