I can recommend the Fairphone 6+, recently launched, they increased the RAM compared to the 6 (as opposed to many other companys decreasing it), the price is a little higher, but you get a phone that is sustainably produced, can be largely fixed by yourself, and has software update commitments until 2033.