You don’t even need a static IP. I simply update the dns record (A and AAAA) every time it changes.
But my current ISP required me to pay extra for a static IP, where their ordinary "dynamic IP" offering shares IP and don't allow for direct connections from the internet. This never used to be the case.