No contact names in activity emails but only name_{contact_id}. Why?
The comment by Demerit solved my problem:

Check under Administer - CiviCase - CiviCase Settings, there's an option that says "Redact Activity Email". That was set to "Redact Emails" and I had to set it to "Do Not Redact Emails".