OP to answer your question there "technically" is no law specifically prohibiting lane splitting, nor lane filtering in the HTA, (Highway Traffic Act). There are however, two charges that an officer can lay. The first is a charge which prohibits occupying the same area of a lane, (In other words this could also be used for two bikes riding abreast of each other). The second and MUCH more serious is the dreaded S172, Commonly referred to as the stunt driving and racing law.
As many others have said it is like most laws, break it enough and at some point you are going to get nabbed. At that point you hope the officer is having a "good day" or is seriously concerned for your safety and goes with the less serious charge. BUT if it goes the route of s 172, a good lawyer will likely get the crown to amend the charge to a less serious offence.... BUT at that point you have already lost your licence, and bike for 7 days plus all the related towning and storage fees have been paid. Even if you are found not guilty at a S172 trial these fees are non recoverable.
So it is truly a risk/reward benefits analysis for you as a rider.
As many others have said it is like most laws, break it enough and at some point you are going to get nabbed. At that point you hope the officer is having a "good day" or is seriously concerned for your safety and goes with the less serious charge. BUT if it goes the route of s 172, a good lawyer will likely get the crown to amend the charge to a less serious offence.... BUT at that point you have already lost your licence, and bike for 7 days plus all the related towning and storage fees have been paid. Even if you are found not guilty at a S172 trial these fees are non recoverable.
So it is truly a risk/reward benefits analysis for you as a rider.