How to ensure proper drainage in a back yard
See  How to build a french drain

This is exactly the purpose for one. They are made to drain water from areas that have poor drainage from clay in the soil or other problems,
I would put it in right on the edge of the grass and the brick. That way the water from the grass will flow into it before reaching the brick and the water from the brick will flow into the drain before it ever reaches your house.