And the next command(/usr/bin/grep 'PATH=' $HOME/.[a-z]*) returned:
/Users/<username>/.bash_history:echo export PATH=’/usr/local/bin:$PATH’ >> ~/.bash_profile
/Users/<username>/.bash_history:export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Users/<username>/.bash_history:/usr/bin/grep 'PATH=' $HOME/.[a-z]*
/Users/<username>/.bash_profile:PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}"
/Users/<username>/.bash_profile:export PATH=’/usr/local/bin:??
grep: /Users/<username>/.bash_sessions: Is a directory
grep: /Users/<username>/.cache: Is a directory
grep: /Users/<username>/.config: Is a directory
grep: /Users/<username>/.cups: Is a directory
grep: /Users/<username>/.idlerc: Is a directory
grep: /Users/<username>/.oracle_jre_usage: Is a directory
grep: /Users/<username>/.vscode: Is a directory
I don't know the offending file or what the PATH is supposed to be