A lot of companies are doing that these days, especially on the Android side. I love how Google promises certain gimmicks that don’t make it to the actual device even after months of release though lol.
Hey I just did a quick web search and found this. I haven't used the tool specifically before. However I recommend either searching the web for a similar tool or using a chatgpt like tool to create a python script that'll achieve your end result. Sed and regex are cool and useful, but they're only going to make it more difficult to achieve what you need.