Pretty clever! Not a bad way to passively learn Morse code too.
iOS supports having notification sounds synchronized with the haptics; I wonder if generating the text tones as audio files and assigning those would have been an easier approach.
Just have to use the share sheet on an audio file and choose "Use as ringtone". Shortcuts/Automator might even be able to make this automagic.
Cassidy Williams has a brief YouTube video on using this method for passive learning.
https://youtu.be/cnuLX8BWYo0