If you source your workspace setup.bash this will prevent the ability to cd to /opt/ros/<distro>/share/<package>.
In ROS1 you could roscd to installed ros packages which was useful if you ever wanted more insight on the options for a specific package. ros2 launch <package> is able to tab complete to these /opt/ros/<distro>/share/<package> directories to find launch files so clearly the functionality already exists, it just needs to be ported in some form here.