Best way to resolve this water drainage issue?

https://streamable.com/ukkab8

With moderate rain these areas on the side of my house pool up with water. Previous owner built the rock pathway without drainage in mind. Any advice would be highly appreciated.