This is a pretty simple implementation of Gerstner Waves inside of UE5. The math is based off a couple different ShaderToy samples and adapted to fit inside unreal hlsl custom nodes. You can find the source for the custom node as well as the node graph down below.
Gerstner Waves (Render)
Gerstner Waves (Detail Lighting)