/opt folder no longer accessible in finder on Catalina

Make sure that you are using /System/Volumes/Data/opt instead of /opt, because the later is not writable due to security features. If you are sure the folder is on the data partition, then chflags nohidden /System/Volumes/Data/opt should unhide it.