After looking through a few extra posts including this one, I found a command which works.
I am not exactly sure what xargs
does but the post I mentioned explains a bit more:
find ./ -name *.py | xargs grep "text-to-find"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…