samsung – How can I transfer blocked numbers/phrases?

I have many blocked numbers/message phrases list on my Samsung S8 Plus phone. Never rooted it and it has still official rom. I will use with the same rom. I will just format it but I don’t want to bother with
insert the numbers one by one after formatting.

So, is there a way to restore numbers/phrases with a JSON/XML file or something else on stock rom?

Block Numbers

Block Phrases