27 is fine. 17 is just the minimum age requirement to become a pilot. There is no maximum age limit to become one. Only that, FAR Part 121 (major airline regulations) require all pilots to retire at the age of 65.
To become a trained airline pilot at Epic Flight Academy in New Smyrna Beach, Florida, USA you must: 1) Be at least 17 years of age 2) Speak English proficiently 3) International students must have a valid passport (Passport information: https://epicflightacademy.com/passports/) or two other forms of identification if you are from the USA 4) Completed high school or secondary education (Grades don’t matter, only that you completed school.)