Get a list of all custom posttype names / slugs

I'm trying to create a dropdown list of all my custom post types.

It would look like this:

I came to that get_post_types () Function that should receive a list of all registered Post items. My custom post types are not displayed …

Is it possible to get an array with the slug and the title of all post types registered in a design? Given the number, the number of post-post types is unknown and dynamic. Each time a new custom post type is added or removed, it should appear in the list.