Before, the material name was used to filter the effect of the stroke, but after the last changes in the ID code, now it's not working. The old design worked, but it was wrong.
After talking with @Julian Eisel (Severin), we agreed to replace the material name with a pointer. Also, this fix a design issue when the materials were linked and use the same name. This is also needed to support future override code.
Related to T76594
It would be important to put this fix in 2.83.
Note: To put in 2.83 requires a version bump and replace the if in versioning code to the last 2.83 version.