Hydrostatic mass bias for galaxy groups and clusters in the FLAMINGO simulations