And how do you know that this teacher had not had endless private chats with this student over this topic?
Probably had, doesn’t excuse doing this. Public schools teach kids that there are no repercussions. Fail a test? Take it again. Don’t turn your homework in on time, thats ok do it tomorrow.
Give the kid a zero if the homework isn’t done. Alert the parent and fail the kid if they don’t fix it.