Retirement tax questions

clarifying question - if I retire from company after age 55, meaning no W2, but continue doing some work for the company as a consultant, meaning 1099, does that still meet rule of 55 definition of "separate from service"?