If you wish to setup listener for a particular PDB in the multitenant database, then follow as below.

Create a listener and start it.

Now connect to the PDB for which you are setting up listener.

Set listener_networks:

use the listener port and the hosname

Check the status of the listener:

ADD THE BELOW TNS ENTRY:

Test the connectivity using tns service: