As said plenty of times already: forget about brute-forcing a Bitcoin address. Bitcoin wouldn't exist if that would be possible. It's much easier to find 12.5 brand new Bitcoins (this happens every 10 minutes!).
I'm trying to recover my funds.
This may be possible, if you have anything else to work with. To start: how did you "lose access" to your wallet? What happened? Is there any data to recover? Any backups you forgot about? What wallet did you use?
These are the kind of questions you'll have to ask yourself in order to regain access. Forget about "a script to generate addresses".