Sofia Vergara attends the Vanity Fair Oscar Party in Beverly Hills in 2022