Did you ever resolve this issue? I have the same situation. I can connect to the same RDS database from localhost but when deployed to Amplify, the app doesn't connect to database. I am using Next.js and develop it locally.
Reasons:
RegEx Blacklisted phrase (3): Did you ever resolve this
RegEx Blacklisted phrase (1.5): resolve this issue?