Welcome to the community, @wilfred_hilbers!
I think your best bet is to keep manually writing the code like you’ve been doing.
Unfortunately, as far as I know, there is no way to automatically write that code with either a single Airtable formula or multiple Airtable formulas.
Airtable’s formula functions just aren’t complex enough to understand the concept of different words, and Airtable’s functions are not even complex enough to give you the position number of a 2nd or 3rd or 4th space in a field. Airtable formulas also do not offer any recursion abilities. In general, Airtable’s functions are relatively basic with a very limited amount of power.
So it would likely be easiest for you to just keep typing in the code manually.