Thank you so much!
I'm very new to shader programming so I found a pre-made one on Godotshaders which I stripped down to only a few lines that I really needed for the reflections. I think it was this one: https://godotshaders.com/shader/water-2d-reflection-4-x/