Not exactly sure what square brackets and colon you're referring to. Joplin stores images and other files using the resource id for the file name.
To get the original file name you either need to use the API or query the DB directly (not recommended unless you know what you're doing)