Unable connect RDS from my IP public

Hi all. I’m using RDS (PostgreSQL 14.6).
I did set Security group allow inbound connect port 5432 from anywhere and enable Public accessible.
So I can only connect to this RDS using EC2 or ECS but when I try connect from my PC, I got error: Connection timed out.

How do I configure it to be able to connect to RDS from my PC?

Apart from the fact that it is insecure to expose a database endpoint over the public internet, whether you can connect to it from the outside world will depend on how you deployed it and how your VPC and DBSubnetGroups are set up. DBSubnetGroups must be bound to public subnets, and an InternetGateway must be deployed.

See CreateDBInstance - Amazon Relational Database Service and search in page for PubliclyAccessible