This is part of the proof of Lemma 16.12 from Schilling's Brownian Motion.
Let $(E,\mathscr{E})$ be a measurable space and $(\Omega, \mathscr{A},P)$ be a probability space. Assume that $(X^n(x,\cdot))_{n\ge 1}$ is a sequence of random variables depending on a parameter $x$. Also let $(x,\omega)\mapsto X^n(x,\omega)$ be $\mathscr{E}\otimes \mathscr{A}$ measurable and for every $x\in E$, the sequence $X^n(x,\omega)$ converges in probability.
The goal is then to show that there is a version of the limit $X(x,\omega)$ such that $(x,\omega)\mapsto X(x,\omega)$ is $\mathscr{E}\otimes \mathscr{A}$ measurable.
The proof proceeds as follows.
By assumption, $\lim_{m,n\to \infty}P(|X^n(x,\omega)-X^m(x,\omega)|>2^{-k})=0$ for all $k\ge 0$ and $x\in E$. Next we define $$n_k(x):=\inf\{m>n_{k-1}(x):\sup_{i,j\ge m} P(|X^i(x,\cdot)-X^j(x,\cdot)|>2^{-k})\le 2^{-k}\}.$$
The text then says obviously, $x\mapsto n_k(x)$ is $\mathscr{E}$-measurable and we see that $$P(\sup_{x\in E} |X^{n_k(x)}(x,\cdot)-X^{n_l(x)}(x,\cdot)|>2^{-k})\le 2^{-k}$$ for all $l>k$. And then using the completeness of the convergence in probability, this shows that $X^{n_k(x)}(x,\omega)$ converges in probability, uniformly in $x\in E$ and we can set this limit as $X(x,\omega)$.
My questions are $1$. Why is $x\mapsto n_k(x)$ $\mathscr{E}$ measurable? I can't see why this is obvious.
$2$. From the definition of $n_k$, how can we get the boundedness in probability, uniformly in $x$ of the form $$P(\sup_{x\in E} |X^{n_k(x)}(x,\cdot)-X^{n_l(x)}(x,\cdot)|>2^{-k})\le 2^{-k}$$ for all $l>k$?
$3$.Finally, how can we show that this implies convergence in probability for $X^{n_k(x)}(x,\omega)$ uniformly in $x\in E$?
I would greatly appreciate if anyone could provide the details here.
I can give you some details about point 1.
I assume we start with something like $n_0(x)=0$. First we note that measurability of $n_1$ follows if we show that $\{x\in E\mid n_1(x)>t\}$ is measurable for each $t\in\mathbb{N}$. For such a $t$ we see that $n_1(x)>t$ if and only if $\sup_{i,j\geq s}P(\lvert X^i(x,\cdot)-X^j(x,\cdot)\rvert>2^{-1})> 2^{-1}$ for each $s\leq t$. Hence, we may write $$ \{x\in E\mid n_1(x)>t\}=\bigcap_{s\leq t}\{x\in E\mid\sup_{i,j\geq s}P(\lvert X^i(x,\cdot)-X^j(x,\cdot)\rvert>2^{-1})> 2^{-1}\}. $$ From the measurability of $(x,\omega)\mapsto X^n(x,\omega)$ you can show that for each $s\in\mathbb{N}$ the map $x\mapsto\sup_{i,j\geq s}P(\lvert X^i(x,\cdot)-X^j(x,\cdot)\rvert>2^{-1})$ is measurable. This gives you measurability of the right-hand side above.
For $k>1$ it should be similar, and you will likely need measurability of $n_{k-1}$ to prove measurability of $n_k$.