It was very labor intensive and a very tiring process to get it nearly perfect because of 15 years of nested bbcode and a lot of mojibake, etc. over the years.
Hopefully, your forum is not “coding intensive” with over a decade of nested bbcode like ours.