To start with: this is not a trivial problem.
You can have a look at my article Where Is that Table Used? where I discuss some options. But you will find that no option answers your question in full. But you could start with building a fulltext-indexed database from the source code and search for INSERT and then see if you can work from that result.
If you are well acquainted with Python and regular expressions, and you are on SQL 2017 or later, you could search the code with regular expression. Or apply regexps to the result from the full-text index. But this can be difficult if you have table names like [My Funky Table]
.