Any person who, within Canada, recruits or otherwise induces any person or body of persons to enlist or to accept any commission or engagement in the armed forces of any foreign state or other armed forces operating in that state is guilty of an offence
https://laws-lois.justice.gc.ca/eng/acts/F-28/section-11.html#%3A~%3Atext=The+Foreign+Enlistment+Act+(R.S.C.%2C+1985%2C+c.)%2Cthey+represent+*+Are+not+Canadian+nationals
https://www.cbc.ca/news/world/sar-el-israel-volunteers-army-1.7361292#%3A~%3Atext=Legal+challenges%2Cgroup+of+pro-Palestinian+lawyers.
That applies to the recruiter while in Canada, that does not pertain to the one being recruited.
That makes sense. No recruiting for foreign military in Canada.