The honesty about VPNs is appreciated, because that's where this query lives or dies. One way to do the tuning without hand-maintaining egress ranges: classify the IPs instead of the users.
Add IPAddress to the projection and PrevIP = prev(IPAddress), then join both ends of each pair against a lookup table with columns like is_vpn, vpn_provider, is_corporate_gateway and is_cloud. The decision gets more specific than a global exclusion:
The table can be a watchlist refreshed daily from whatever IP intelligence you have. We produce this kind of data at IPGeolocation.io (I work there): the security endpoint returns those flags plus vpn_last_seen, and bulk takes up to 50,000 IPs per call, enough for a day of distinct sign-in IPs in most tenants. It's paid, so if budget is tight, start with your own egress list and named locations.
One catch either way: label the IP when the sign-in happens, not when the analyst opens the incident. VPN exits get reassigned, and next month's classification can be wrong for this week.