Incorrect syntax near 'as'

I have just downloaded Apexsql refactor latest version, setup with SSMS 17.4, I copied a sql script from an article at

whenever I chose Format SQL, I get a message

Line: 56, Column:214, Position: 0, Incorrect syntax near 'as'

I close the messagebox,, click again Format SQL, I get the same messagebox with another line number in spite of the fact that there is no 'as' on the indicated lines.