people legitimately practice painting nudes from images or models all the time
The problem comes with dissemination and intent.
Paint a nude and share it on your art website, ok - post it on the school’s chat group and send it to the models friends and family after you breakup ? Not ok