It’s legal as it stands now.
But it’s certainly limiting participation in the sport overall.
Soccer does few things right, but the division of talent and teams are usually pretty good with the age based system they use. There’s a place for every talent level and the good kids play up in age, not down.