User::isIP() accepts IPv6 ranges (like 2001:db8::/32) but not IPv4 ranges (like 192.0.2.0/24). It should probably be made consistent somehow; this might involve having one method to accept ranges and another to not.
An audit of existing uses and whether they seem like they should or shouldn't accept ranges is in T239527#5705550.