This article says https://en.wikipedia.org/wiki/Set-theoretic_limit#Almost_sure_convergence.
The event that a sequence of random variables $Y_1, Y_2, \dots$ converges to another random variable $Y$ is formally expressed as $\{{\limsup _{n\to \infty }|Y_{n}-Y|=0\}}$. It would be a mistake, however, to write this simply as a limsup of events. That is, this is not the event $ \limsup _{n\to \infty }\{|Y_{n}-Y|=0\}$ !
I was wondering if the second expression is simply incorrect notation because it did not have a pair of parentheses around the whole expression. Both expressions mean the same thing to me.