How to edit the name of a layer?

On the right layers panel, you can double-click on the existing layer name to change it.

You can also rename a layer in the scene layers timeline.

If you see an element whose layer is locked, you will need to unlock it first to edit it.