How can i edit all posts slug in bulk keeping WP native redirect?

This is what worked for me:

 function remove_false_words($slug) {
     if(!is_page())
  if (!is_admin()) return $slug;
  $keys_false = array('unwanted','word');
  $slug = explode ('-', $slug);
  $slug = array_diff($slug,$keys_false);
  return implode ('-', $slug);
}
add_filter ('sanitize_title', 'remove_false_words');

Then you can use wordpress dashboard to select all posts, bulk edit, Update. And the words will be removed from slugs with native redirect.