A "ban" is a legal prohibition. The possibility of the ban is solely a legal decision. Open weights might make it easy to violate a ban, but it does absolutely nothing to prevent one from being possible. The questions as to whether a ban would be effective hinges entirely on the ability and desire to enforce it.