If you're major concern is copilot : Microsoft sucking up your codebase, you better not be producing open source applications anywhere.
Not a single open source license will protect you. (And it won't help even if they add an exclusion clause for AI).