This chapter does not follow on chronologically from the previous chapter. This appears from the fact that the previous chapter has been dealing with messengers sent by Zedekiah (the last king of Judah) to Jeremiah, but here in chapter 22 previous kings prior to Zedekiah are mentioned, and prophecies are made about them using the language of prediction.
See Introduction for a list of kings reigning during Jeremiah’s ministry.