That works, but usually I would rather have a different fighting style, even if I am not boosting dexterity or strength.
This is especially true with the 2024 rules and nick.
Shillelagh works, but you are tying yourself to a club or a staff and I don't particularly like to do that, especially with the weapon masteries. You are giving up a fighting style to take Shillelagh and it is not really better than if you just took the approriate fighting style, and kept using dex/strength even if you are using a club or staff.
A staff is going to benefit from dueling too, so at low level it is either awash or worse than getting dueling and using a d8 weapon, at high level it breaks away. A club works best when using nick with a scimitar in the other hand, so you are doing more damage with the club but doing less with scimitar than if you got Two Weapon Fighting. Again at lower level a Short Sword and Scimitar combo with two weapon fighting is going to do substantially more damage (and have better masteries). When you consider Vex and favored enemy, I think sword and scimitar with a 16 dex will still be competitive even after Wisdom is 20 and your club damage is 2d6 and about that time you are getting to where you can take a dex ASI or feat too, even if you started out pushing Wisdom.
As much as I hate the new Favored Enemy, you need to consider it when talking about a Ranger in the 2024 rules. This mechanic strongly drives the class to a two-weapon fighting type character and maximizing the number of attacks you make matters a lot if you are striving for high weapon damage.
If you are sold on Shillelagh on a Wisdom Ranger, I think a 1-level Druid dip or Magic Initiate is a better way to get it. That way you keep your fighting style.