The latest Macbook Pro 16" supports 32GB or 64GB RAM [1]. It's been that way for a few generations. I have the 2018 model and it has 32GB. I think that might have been the first generation where that much RAM was supported.
[1] https://www.apple.com/macbook-pro-16/specs/
edit: oh right, that's not M1 brainfart