I also know that sample variance has the formula "Mean of the squares
minus the mean squared".
No. A phrase like "mean of squares minus the square of means" is a description of a formula for the population variance — not the sample variance. (E.g., you can see it suggested here, with a recommended acronym of "MOSSOM"). We see:
$$\sigma^2 = \frac{\sum (x_i - \bar{x})^2}{n} = \frac{\sum x_i^2}{n} - \bar{x}^2$$
The mnemonic known to the OP describes the rightmost expression here. This is called the "calculating formula" because it takes fewer operations to produce, and it was an important technique when all such calculations were done by hand (not so now with available technology). To be clear, both of the expressions above produce the exact same number — if you were to double-check with both, and get different results, then that indicates an error in some hand calculation.
However, this reflects the definition for population variance (it has $n$ in the denominator), so it will of course produce a different value than the formula for sample variance noted by the OP (which has $n - 1$ in the denominator, that is, Bessel's correction).
Note that sample variance also has an analogous calculating formula, but it cannot be described by the same MOSSUM mnemonic:
$$s^2 = \frac{\sum (x_i - \bar{x})^2}{n - 1} = \frac{\sum x_i^2 - (\sum x_i)^2/n}{n - 1}$$