How to get rid of an extra middle part my permalink

It happens because you installed WordPress in a directory (called wordpress).

You can update your Site Url and do some modifications to fix that. The Codex has a detailed article on how to proceed – https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install

tech