Unveiling UV-bright stellar populations in red and dead galaxies with CUBES