I took my DS to the Maldives for two weeks when he was 2.5 and again alone (just me and him) for three weeks to the same resort. We had an amazing time.
It was a few years back (he's 19 now 😂😂😂) but we stayed on Bandos which was, at the time, a very family friendly island. You got there by boat, around 10-15 mins from Male. They had movie nights with ice cream for the kids, a magician once a week, nice play park and a shallow pool. They would happily pack up a picnic for dinner if we wanted an early night in our room, or we could pick up a pizza.
The accommodation was mainly single level bungalows set back from the beach by a small path. I used to get up early and sit on the sand with my morning coffee and watch him sleeping in bed in our bungalow.
We did a few boat trips, they had a small uninhabited island called Kuda Bandos which you could visit, night time fishing and dinner on the beach, trips to nearby resorts for the day.
We took a direct flight, I think it was Tui but booked into Premium economy for a bit of extra space so he could lie down and sleep.
For an absolute blow out The One and Only also looked amazing, with wonderful kids activities, depending on your budget!