Cutting the floor, digging a sump and lining it is good and fine. Adding a small submersible sump pump is also a good idea... however...you need to power the pump safely (in water!) and also (somehow) run a drain again across the top of the floor which people in their rush to clean up won't trip over....
FWIW: Try a different approach: If the washing machine is in a corner or next to an external wall, you could build a 6" hob (like a shower recess) in the corner, slightly larger in area than the footprint of the washing machine, but place the machine just behind the front edge of the hob, mounted on 4 besser blocks.
Excess water pools within the bunding provided by the hob. The pump sits on the "floor" behind the machine and its waste pipe could run through the external wall and out onto the grass or into a rubble pit as suggested by jc109. Take the power for the pump from the GPO which serves the washing machine. This way if the machine overflows, the water is all contained under it and you don't have soapy leaking all over your expert tiling job!

You may need a non-backflow valve in the waste pipe... alternatively, if the pump pushes the waste say 30cm (a foot) "uphill" to/through) the wall and once outside it's all downhill, then most of the waste water will syphon itself out...
MY99 RR P38 HSE 4.6 (Thor) gone (to Tasmania)
2020 Subaru Impreza S ('SWMBO's Express' )
2023 Ineos Grenadier Trialmaster (diesel)
Bookmarks