As of this writing, with PostgreSQL you cannot rename a column while also changing its type (or performing any other change), nor has this ever been possible.
Ever since ALTER TABLE was first allowed to include a list of actions (v8.0) through the current version (v17, as of this answer), the RENAME form of the command has never been allowed to be part of a list of actions; it must be in a command by itself.
See ALTER TABLE, specifically where it says (bold added for emphasis):
All the forms of ALTER TABLE that act on a single table, except RENAME, SET SCHEMA, ATTACH PARTITION, and DETACH PARTITION can be combined into a list of multiple alterations to be applied together. For example, it is possible to add several columns and/or alter the type of several columns in a single command. This is particularly useful with large tables, since only one pass over the table need be made.
ALTER TABLEstatement vs two within the same transaction.backticksfor emphasis. If you need to emphasise a piece of text, wrap it in**two asterisks**