Python algorithm for extract ascii from binary file

hi all, i need to make a script that will extract some ascii strings from a binary file.
I’ve tried several ready-made ones from github and modified them even with gpt help, but none give me exactly what I’m looking for. I leave here an example of the type of binary file and the data I need from each of them. I can pay for the help if the algorithm is well done and works well in most of the files that I would have to analyze. thank you

examples ascii string and files for analyzer