First, let us show that \(\nu(G) \leq \frac{1}{2}\left(|V(G)|+|S|-o(G\setminus S)\right)\) for any set \(S\subseteq V(G)\text{.}\) If \(M\) is a matching in \(G\text{,}\) then each component \(C\) of \(G\setminus S\) can contain at most \(\frac{|C|}{2}\) edges of \(M\) if \(|C|\) is even and at most \(\frac{|C|-1}{2}\) if \(|C|\) is odd. Therefore, the total number of edges of \(M\) contained within \(V(G)\setminus S\) is at most \(\frac{1}{2}|V(G)\setminus S| - \frac{1}{2}o(G\setminus S)\text{.}\) Also, the number of matching edges that have at least one endpoint within \(S\) is at most \(|S|\text{.}\) So,
\begin{equation*}
|M|\leq \frac{1}{2}|V(G)\setminus S| - \frac{1}{2}o(G\setminus S) + |S| = \frac{1}{2}\left(|V(G)|+|S|-o(G\setminus S)\right)
\end{equation*}
as required.
So, it remains to show that every graph \(G\) has a set \(S\) such that \(\nu(G) \geq \frac{1}{2}\left(|V(G)|+|S|-o(G\setminus S)\right)\text{.}\) We prove this by induction on \(|V(G)|\text{.}\) Of course, if \(G\) is disconnected, then we can apply the formula to each component of \(G\) and we are done. So, \(G\) is connected. We divide the proof into cases.
Case.
There exists a vertex \(v\) such that every matching in \(G\) of maximum cardinality saturates \(v\text{.}\) In this case, we have that \(\nu(G\setminus\{v\})=\nu(G)-1\text{.}\) By induction, we can apply the formula to \(G\setminus\{v\}\) to get a set \(T\subseteq V(G)\setminus\{v\}\) such that \(\nu(G)-1=\frac{1}{2}\left(|V(G)|-1 + |T| - o((G\setminus\{v\})\setminus T)\right)\text{.}\) We are done by letting \(S:=T\cup\{v\}\text{.}\)
Case.
For every vertex \(v\text{,}\) there exists a matching in \(G\) of maximum cardinality that does not saturate \(v\text{.}\) In this case, the graph \(G\) cannot have a perfect matching for, if it did, then every matching of maximum size would be perfect and would therefore saturate every vertex. So, \(\nu(G)< \frac{|V(G)}{2}\text{.}\) What we will prove is that, in fact, \(\nu(G)=\frac{|V(G)|-1}{2}\text{.}\) If we can do this, then \(S=\emptyset\) will be a set such that \(\nu(G) \leq \frac{1}{2}\left(|V(G)|+|S|-o(G\setminus S)\right)\) and we will be done.
We proceed by contradiction. Suppose that \(\nu(G)\leq \frac{|V(G)|-2}{2}\text{,}\) let \(M\) be a matching of maximum cardinality and let \(u,v\in V(G)\) such that \(u\) and \(v\) are not saturated by \(M\text{.}\) Among all possible choices of \(M,u\) and \(v\text{,}\) suppose that the distance between \(u\) and \(v\) (i.e. the length of the shortest path between them) is as small as possible. Recall that \(G\) is connected, and so the distance from \(u\) to \(v\) is finite. Of course, if \(uv\) is an edge, then we can add \(uv\) to \(M\) to get a larger matching, which is a contradiction. So, the shortest path from \(u\) to \(v\) contains at least one other vertex, say \(w\text{.}\) By assumption, there exists a matching in \(G\) of maximum cardinality such that \(w\) is not saturated. Choose such a matching \(M'\) such that \(|M\cap M'|\) is as large as possible.
Now, note that the distance from \(u\) to \(w\) is less than the distance from \(u\) to \(v\text{.}\) So, if \(M'\) does not saturate \(u\text{,}\) then it would contradict our choice of \(u,v,M\text{.}\) So, \(M'\) saturates \(u\) and, by a similar argument, it saturates \(v\text{.}\) Thus, since \(M\) and \(M'\) have the same cardinality, there must be a vertex \(z\neq w\) that is saturated by \(M\) but not by \(M'\text{.}\) Note that \(wz\) cannot be an edge for, if it were, then we could add this edge to \(M'\) to get a larger matching. Let \(yz\) be the edge of \(M\) containing \(z\text{.}\) The vertex \(y\) must be saturated by \(M'\) because, if not, then we could add \(yz\) to \(M'\) and get a larger matching. So, let \(xy\) be the edge of \(M'\) that saturates \(y\text{.}\) Let \(M''=\left(M'\setminus \{xy\}\right)\cup \{yz\}\text{.}\) This is a matching of the same cardinality as \(M'\) which does not saturate \(w\) (because \(w\) and \(z\) are not adjacent) such that \(|M\cap M''|> |M\cap M'|\text{,}\) which is a contradiction. So, we must have \(\nu(G)=\frac{|V(G)|-1}{2}\) which completes the proof.