If I follow what you are asking that is already implemented in Threads. A moderator can approve and delete posts from their admin menu as well as edit any user in the regular user categoryies. They can change things in their own forum and thats it. They do not have access to alter other moderators or admin nor can they change the normal config or theme settings of the board. Only an admin can do these things.