^^ This. You need to use flex or protect within a conduit section. Also, T&E shouldn’t be terminated into a plug either. So just use flex for the full lot.
For electrical engineers. Part P was a godsend lol Gave us a good excuse not to do house bashing. (Take note Jud ) Not required in industry.