An IPv4 address still isn't very expensive. I'm paying about $1.30 per month to have a static IPv4 address from my home ISP.
IPv4 addresses are expensive right now. Registries run out of new allocations years ago, so if you ask them you'll be put in a waiting list[1] hoping one for a block to be recovered. To get one right know you have to go on the market and negotiate a transfer: blocks are selling at ~50$/address right now. The price more than doubled in the last year or so: people are even speculating on it [2].
[1]: https://www.ripe.net/manage-ips-and-asns/ipv4/ipv4-pool
[2]: https://teddit.net/r/investing/comments/qdple3/i_am_planning...
https://www.internetgovernance.org/2021/08/19/a-fight-over-c...
(Although, people rent apartments with break-even periods well beyond 10 years, so maybe 2-3 is still fine.)