$X\subset \mathbb{R}^d$, uncountable, not necessarily compact.
$(Y,\mathcal{F}_Y,\mu)$: measure space.
$f\colon\,X\times Y\to \mathbb{R}$ , continuous in $X$ for each $\mu$-a.e. $y$,, and $\mathcal{F}_Y/\mathcal{B}(\mathbb{R})$-measurable for each $x$.
Letting $g(y):=\sup_{x\in X}f(x,y)$, if $g(y)<\infty$ $\mu$-a.e., is this $\mathcal{F}_Y/\mathcal{B}(\mathbb{R})$-measurable?
My attempt:
Following, Measurability of the supremum of a Brownian motion I considered $$\sup_{x\in X\cap \mathbb{Q}^d}f(x,y),$$ noting that $\mathbb{Q}^d$ is dense in $(\mathbb{R},\|\cdot\|_2)$ (by $\|\cdot\|_2$ I mean Euclidean norm topology).
But I got confused by this question: Supremum over dense subset of banach space does $X$ need to be compact?
I have asked a similar question before on essential supremum: Is ess sup of product measurable function measurable?. For the supremum case I had the property of Caratheodory functions (18.19 in Infinite Dimensional Analysis: A Hitchhiker's Guide By Charalambos D. Aliprantis, Kim C. Border). But for that it seems $X$ needs to be compact.
I see many questions such as Supremum of a product measurable function..., but it doesn't seem they answer my question.