Federally, it is illegal to set a rate with clients. By law, rates must be negotiable. There's no regulation around sharing commissions between real estate agents, so maybe this is where you're getting confused?
It's also super common to negotiate a rate with an agent if you're buying a new house and selling your old one, by offering to let them be agent for both.