At least in American parlance, "years old" is assumed and optional. Also "over" is frequently substituted for "older than". Thus "you must be over twenty one to enter this bar" is very acceptable.
My answer "You must be over twenty one years old to enter this bar" is accepted (as of Oct 2021). I don't know if I remove "years old" and it would be also accepted, though.