A Feynman-Kac result via Markov BSDEs with generalised drivers